Skip to content

Commit 2a0c36e

Browse files
committed
Merge branch 'master' into sveltejsgh-2194
2 parents 3ef12fc + 5290b1d commit 2a0c36e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte",
3-
"version": "3.0.0-beta.26",
3+
"version": "3.0.0-beta.27",
44
"description": "The magical disappearing UI framework",
55
"module": "index.mjs",
66
"main": "index",

transition.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ export function crossfade({ fallback, ...defaults }) {
135135
const to = node.getBoundingClientRect();
136136
const dx = from.left - to.left;
137137
const dy = from.top - to.top;
138+
const d = Math.sqrt(dx * dx + dy * dy);
138139

139140
const style = getComputedStyle(node);
140141
const transform = style.transform === 'none' ? '' : style.transform;
141-
const opacity = +opacity;
142+
const opacity = +style.opacity;
142143

143144
return {
144145
delay,

0 commit comments

Comments
 (0)