animare
Version:
Advanced animation library for modern JavaScript.
4 lines • 1.55 kB
JavaScript
;Object.defineProperty(exports,"__esModule",{value:true});exports.Timing=exports.ScrollElementEdge=exports.ScrollAxis=exports.Event=exports.Direction=void 0;exports.createAnimations=createAnimations;let Direction=exports.Direction=/*#__PURE__*/function(Direction){Direction["Forward"]="forward";Direction["Reverse"]="reverse";Direction["Alternate"]="alternate";Direction["AlternateReverse"]="alternate-reverse";return Direction;}({});let Timing=exports.Timing=/*#__PURE__*/function(Timing){Timing["AfterPrevious"]="after-previous";Timing["WithPrevious"]="with-previous";Timing["FromStart"]="from-start";return Timing;}({});let Event=exports.Event=/*#__PURE__*/function(Event){Event["Play"]="play";Event["Resume"]="resume";Event["Pause"]="pause";Event["Stop"]="stop";Event["Complete"]="complete";Event["Repeat"]="repeat";return Event;}({});let ScrollAxis=exports.ScrollAxis=/*#__PURE__*/function(ScrollAxis){ScrollAxis["Vertical"]="y";ScrollAxis["Horizontal"]="x";return ScrollAxis;}({});let ScrollElementEdge=exports.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.
*/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. */ // ...