Merge branch 'master' into gh-2194

pull/2432/head
Rich Harris 6 years ago
commit 2a0c36e7c8

@ -1,6 +1,6 @@
{
"name": "svelte",
"version": "3.0.0-beta.26",
"version": "3.0.0-beta.27",
"description": "The magical disappearing UI framework",
"module": "index.mjs",
"main": "index",

@ -135,10 +135,11 @@ export function crossfade({ fallback, ...defaults }) {
const to = node.getBoundingClientRect();
const dx = from.left - to.left;
const dy = from.top - to.top;
const d = Math.sqrt(dx * dx + dy * dy);
const style = getComputedStyle(node);
const transform = style.transform === 'none' ? '' : style.transform;
const opacity = +opacity;
const opacity = +style.opacity;
return {
delay,

Loading…
Cancel
Save