|
|
|
@ -98,12 +98,15 @@ export interface SlideParams {
|
|
|
|
delay?: number;
|
|
|
|
delay?: number;
|
|
|
|
duration?: number;
|
|
|
|
duration?: number;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
|
|
|
|
xAxis?: number;
|
|
|
|
|
|
|
|
yAxis?: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function slide(node: Element, {
|
|
|
|
export function slide(node: Element, {
|
|
|
|
delay = 0,
|
|
|
|
delay = 0,
|
|
|
|
duration = 400,
|
|
|
|
duration = 400,
|
|
|
|
easing = cubicOut
|
|
|
|
easing = cubicOut
|
|
|
|
|
|
|
|
|
|
|
|
}: SlideParams = {}): TransitionConfig {
|
|
|
|
}: SlideParams = {}): TransitionConfig {
|
|
|
|
const style = getComputedStyle(node);
|
|
|
|
const style = getComputedStyle(node);
|
|
|
|
const opacity = +style.opacity;
|
|
|
|
const opacity = +style.opacity;
|
|
|
|
|