File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/svelte/src/transition Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,14 @@ export function fly(
8383 const target_opacity = + style . opacity ;
8484 const transform = style . transform === 'none' ? '' : style . transform ;
8585 const od = target_opacity * ( 1 - opacity ) ;
86- const [ xValue , xUnit ] = split_css_unit ( x ) ;
87- const [ yValue , yUnit ] = split_css_unit ( y ) ;
86+ const [ x_value , x_unit ] = split_css_unit ( x ) ;
87+ const [ y_value , y_unit ] = split_css_unit ( y ) ;
8888 return {
8989 delay,
9090 duration,
9191 easing,
9292 css : ( t , u ) => `
93- transform: ${ transform } translate(${ ( 1 - t ) * xValue } ${ xUnit } , ${ ( 1 - t ) * yValue } ${ yUnit } );
93+ transform: ${ transform } translate(${ ( 1 - t ) * x_value } ${ x_unit } , ${ ( 1 - t ) * y_value } ${ y_unit } );
9494 opacity: ${ target_opacity - od * u } `
9595 } ;
9696}
You can’t perform that action at this time.
0 commit comments