Choreographer-js is a simple library to take care of complex CSS animations that can be associated with any event.
css animation examples, jquery trigger css animation, animate css github, css multiple animations, trigger css animation with javascript
Cool 3D Typography Animations Made with CSS & Javascript | ztext.js
How to make use of it:
1. Import the main JavaScript Choreographer.js into the web page.
<script src="choreographer.min.js"></script>
2. Choreographer was created using a composition object with the following keys and values:
var choreographer = new Choreographer({ animations: [ { range: [-1, window.innerWidth], selector: '#box', type: 'scale', style: 'height', from: 100, to: 50, unit: 'vh' }, { range: [-1, window.innerWidth / 2], selector: '#box', type: 'scale', style: 'opacity', from: 0.2, to: 1 }, { range: [window.innerWidth / 2, window.innerWidth], selector: '#box', type: 'change', style: 'backgroundColor', to: '#00c9ff' }, ] })
3. Attach an event to the animation.
window.addEventListener('mousemove', function(e) { choreographer.runAnimationsAt(e.clientX) })
JavaScript Library To Handle Event-driven CSS Animations, Choreographer-js Plugin/Github, css animation delay, css animation on click
See Demo And Download
Official Website(christinecha): Click Here
This superior jQuery/javascript plugin is developed by christinecha. For extra Advanced Usages, please go to the official website.