Add option for horizontal axis of movement to slide

pull/6183/head
Theo-Steiner 5 years ago committed by Theodor Steiner
parent 26104eaaba
commit c85512cf91

@ -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;

Loading…
Cancel
Save