animare
Version:
Advanced animation library for modern JavaScript.
4 lines • 1.29 kB
JavaScript
export let Direction=/*#__PURE__*/function(Direction){Direction["Forward"]="forward";Direction["Reverse"]="reverse";Direction["Alternate"]="alternate";Direction["AlternateReverse"]="alternate-reverse";return Direction;}({});export let Timing=/*#__PURE__*/function(Timing){Timing["AfterPrevious"]="after-previous";Timing["WithPrevious"]="with-previous";Timing["FromStart"]="from-start";return Timing;}({});export let Event=/*#__PURE__*/function(Event){Event["Play"]="play";Event["Resume"]="resume";Event["Pause"]="pause";Event["Stop"]="stop";Event["Complete"]="complete";Event["Repeat"]="repeat";return Event;}({});export let ScrollAxis=/*#__PURE__*/function(ScrollAxis){ScrollAxis["Vertical"]="y";ScrollAxis["Horizontal"]="x";return ScrollAxis;}({});export let ScrollElementEdge=/*#__PURE__*/function(ScrollElementEdge){ScrollElementEdge["Top"]="top";ScrollElementEdge["Bottom"]="bottom";ScrollElementEdge["Left"]="left";ScrollElementEdge["Right"]="right";return ScrollElementEdge;}({});/**
* **Note:** This function does nothing, used only for type checking.
*/export function createAnimations(animations){return animations;}// utils
/** Extends the types of properties in the given type `T` to allow arrays and functions, except for the 'to' property which only allows arrays. */ // ...