(easing, transitionName)
| 17 | } |
| 18 | |
| 19 | function getTransitionEasingFunction(easing, transitionName) { |
| 20 | if (easing !== null) { |
| 21 | if (easing) return { easeOutExpo }[easing]; |
| 22 | if (transitionName === 'directional') return easeOutExpo; |
| 23 | } |
| 24 | return (progress) => progress; |
| 25 | } |
| 26 | |
| 27 | export function calcTransition(defaults, transition, isLastClip) { |
| 28 | if (transition === null || isLastClip) return { duration: 0 }; |