Main module of animatecss
Types
AnimateCssAnimations {.pure.} = enum bounce, flash, pulse, rubberBand, shakeX, shakeY, headShake, swing, tada, wobble, jello, heartBeat, backInDown, backInLeft, backInRight, backInUp, backOutDown, backOutLeft, backOutRight, backOutUp, bounceIn, bounceInDown, bounceInLeft, bounceInRight, bounceInUp, bounceOut, bounceOutDown, bounceOutLeft, bounceOutRight, bounceOutUp, fadeIn, fadeInDown, fadeInDownBig, fadeInLeft, fadeInLeftBig, fadeInRight, fadeInRightBig, fadeInUp, fadeInUpBig, fadeInTopLeft, fadeInTopRight, fadeInBottomLeft, fadeInBottomRight, fadeOut, fadeOutDown, fadeOutDownBig, fadeOutLeft, fadeOutLeftBig, fadeOutRight, fadeOutRightBig, fadeOutUp, fadeOutUpBig, fadeOutTopLeft, fadeOutTopRight, fadeOutBottomRight, fadeOutBottomLeft, flip, flipInX, flipInY, flipOutX, flipOutY, lightSpeedInRight, lightSpeedInLeft, lightSpeedOutRight, lightSpeedOutLeft, rotateIn, rotateInDownLeft, rotateInDownRight, rotateInUpLeft, rotateInUpRight, rotateOut, rotateOutDownLeft, rotateOutDownRight, rotateOutUpLeft, rotateOutUpRight, hinge, jackInTheBox, rollIn, rollOut, zoomIn, zoomInDown, zoomInLeft, zoomInRight, zoomInUp, zoomOut, zoomOutDown, zoomOutLeft, zoomOutRight, zoomOutUp, slideInDown, slideInLeft, slideInRight, slideInUp, slideOutDown, slideOutLeft, slideOutRight, slideOutUp
AnimateCssUtility {.pure.} = enum delay2s = "delay-2s", delay3s = "delay-3s", delay4s = "delay-4s", delay5s = "delay-5s", slow, slower, fast, faster, repeat1 = "repeat-1", repeat2 = "repeat-2", repeat3 = "repeat-3", infinite
Procs
func animatecss(classes: varargs[string, parseClass]): string {....raises: [], tags: [].}
-
Animate.css
Example:
doAssert animatecss(bounce) == "animate__animated animate__bounce" doAssert animatecss(bounceInLeft) == "animate__animated animate__bounceInLeft" # And with multiple doAssert animatecss(backInRight, bounce) == "animate__animated animate__backInRight animate__bounce"
func parseClass(x: AnimateCssAnimations or AnimateCssUtility): string