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;
duration?: number;
easing?: EasingFunction;
xAxis?: number;
yAxis?: number;
}
export function slide(node: Element, {
delay = 0,
duration = 400,
easing = cubicOut
}: SlideParams = {}): TransitionConfig {
const style = getComputedStyle(node);
const opacity = +style.opacity;

Loading…
Cancel
Save