diff --git a/transition.mjs b/transition.mjs index c89952cef5..1a3cb89e39 100644 --- a/transition.mjs +++ b/transition.mjs @@ -138,7 +138,7 @@ export function crossfade({ fallback, ...defaults }) { const style = getComputedStyle(node); const transform = style.transform === 'none' ? '' : style.transform; - const opacity = +opacity; + const opacity = +style.opacity; return { delay,