Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Animation</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
- <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
- <script>
- $(document).ready(function(){
- //hide elements
- $('.list-group-item').hide();
- //loop through each element
- $('.list-group-item').each(function(i,e){
- //set a delay for each element
- $(this).delay(100*i).queue(function(){
- //use variables
- var ani = 'animated bounceInLeft';
- var end = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
- //display element
- $(this).show();
- //animate element and then remove class when animation complete
- $(this).addClass(ani).one(end,function(){
- $(this).removeClass(ani);
- });
- });
- });
- });
- </script>
- </head>
- <body>
- <div class="container">
- <h2 class="animated infinite bounce">Basic List Group</h2>
- <div id="list" class="list-group">
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- <a class="list-group-item">First item</a>
- <a class="list-group-item">Second item</a>
- <a class="list-group-item">Third item</a>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement