1- import { cubicOut , cubicInOut , linear } from '../easing /index.js' ;
2- import { assign , split_css_unit , is_function } from '../internal /index.js' ;
1+ import { assign , is_function , split_css_unit } from '../internal /index.js' ;
2+ import { cubicInOut as cubic_in_out , cubicOut as cubic_out , linear } from '../easing /index.js' ;
33
44/**
55 * Animates a `blur` filter alongside an element's opacity.
@@ -11,7 +11,7 @@ import { assign, split_css_unit, is_function } from '../internal/index.js';
1111 */
1212export function blur (
1313 node ,
14- { delay = 0 , duration = 400 , easing = cubicInOut , amount = 5 , opacity = 0 } = { }
14+ { delay = 0 , duration = 400 , easing = cubic_in_out , amount = 5 , opacity = 0 } = { }
1515) {
1616 const style = getComputedStyle ( node ) ;
1717 const target_opacity = + style . opacity ;
@@ -54,7 +54,7 @@ export function fade(node, { delay = 0, duration = 400, easing = linear } = {})
5454 */
5555export function fly (
5656 node ,
57- { delay = 0 , duration = 400 , easing = cubicOut , x = 0 , y = 0 , opacity = 0 } = { }
57+ { delay = 0 , duration = 400 , easing = cubic_out , x = 0 , y = 0 , opacity = 0 } = { }
5858) {
5959 const style = getComputedStyle ( node ) ;
6060 const target_opacity = + style . opacity ;
@@ -80,7 +80,7 @@ export function fly(
8080 * @param {import('./public').SlideParams } [params]
8181 * @returns {import('./public').TransitionConfig }
8282 */
83- export function slide ( node , { delay = 0 , duration = 400 , easing = cubicOut , axis = 'y' } = { } ) {
83+ export function slide ( node , { delay = 0 , duration = 400 , easing = cubic_out , axis = 'y' } = { } ) {
8484 const style = getComputedStyle ( node ) ;
8585 const opacity = + style . opacity ;
8686 const primary_property = axis === 'y' ? 'height' : 'width' ;
@@ -126,7 +126,7 @@ export function slide(node, { delay = 0, duration = 400, easing = cubicOut, axis
126126 */
127127export function scale (
128128 node ,
129- { delay = 0 , duration = 400 , easing = cubicOut , start = 0 , opacity = 0 } = { }
129+ { delay = 0 , duration = 400 , easing = cubic_out , start = 0 , opacity = 0 } = { }
130130) {
131131 const style = getComputedStyle ( node ) ;
132132 const target_opacity = + style . opacity ;
@@ -152,7 +152,7 @@ export function scale(
152152 * @param {import('./public').DrawParams } [params]
153153 * @returns {import('./public').TransitionConfig }
154154 */
155- export function draw ( node , { delay = 0 , speed, duration, easing = cubicInOut } = { } ) {
155+ export function draw ( node , { delay = 0 , speed, duration, easing = cubic_in_out } = { } ) {
156156 let len = node . getTotalLength ( ) ;
157157 const style = getComputedStyle ( node ) ;
158158 if ( style . strokeLinecap !== 'butt' ) {
@@ -202,7 +202,7 @@ export function crossfade({ fallback, ...defaults }) {
202202 const {
203203 delay = 0 ,
204204 duration = ( d ) => Math . sqrt ( d ) * 30 ,
205- easing = cubicOut
205+ easing = cubic_out
206206 } = assign ( assign ( { } , defaults ) , params ) ;
207207 const from = from_node . getBoundingClientRect ( ) ;
208208 const to = node . getBoundingClientRect ( ) ;
0 commit comments