Slide Animations
Customize this animation
jsCssAnimations.init
If you want an animation to be triggered by a DOM Event, use the 'init' property followed by the desired animation function. The animation function receives an Object that should contain the CSS selector for the element(s) that will trigger the animation and a 'targetSelector' to specify the element(s) to be animated.
You can specify any valid CSS selector, meaning that you can have multiple elements being animated by multiple triggers, but all attached to the same event. By default, the 'click' event will trigger the animation, but you can choose any other DOM event by specifying the 'on' option in the animation function's argument.
js