Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <span class="animated bounceIn">hello</span>
- $('#your-id').animateCSS('fadeIn', {
- delay: 1000,
- callback: function(){
- console.log('Boom! Animation Complete');
- }
- });
- function animationClick(element, animation, removeOrNot){
- $=jQuery;
- element = $(element);
- element.click(
- function() {
- element.addClass('animated ' + animation);
- //wait for animation to finish before removing classes
- if(removeOrNot){
- window.setTimeout( function(){
- element.removeClass('animated ' + animation);
- }, 2000);
- }
- }
- );
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement