Pure CSS – Animation Effect – BounceIn
CSS Source Code:
@-webkit-keyframes bounceIn { 0% { opacity: 0; -webkit-transform: scale(.3); } 50% { opacity: 1; -webkit-transform: scale(1.05); } 70% { -webkit-transform: scale(.9); } 100% { -webkit-transform: scale(1); } } @-moz-keyframes bounceIn { 0% { opacity: 0; -moz-transform: scale(.3); } 50% { opacity: 1; -moz-transform: scale(1.05); } 70% { -moz-transform: scale(.9); } 100% { -moz-transform: scale(1); } } @-o-keyframes bounceIn { 0% { opacity: 0; -o-transform: scale(.3); } 50% { opacity: 1; -o-transform: scale(1.05); } 70% { -o-transform: scale(.9); } 100% { -o-transform: scale(1); } } @keyframes bounceIn { 0% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1.05); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
HTML Source Code:
<!DOCTYPE html> <html> <head> <title>Animation Effects</title> <style type="text/css">@import url(bounceIn.css);</style> <style type="text/css"> #animated{ -webkit-animation: bounceIn 1300ms; /* Chrome, Safari 5+ */ -moz-animation: bounceIn 1300ms; /* Firefox 5-15 */ -o-animation: bounceIn 1300ms; /* Opera 12.00 */ animation: bounceIn 1300ms; /* Chrome, Firefox 16+, IE 10+, Opera 12.10+ */ } </style> </head> <body> Reload the page to see the effect <table style="width:100%;margin-top:30px;"> <tr> <td><img id="animated" src="images/thumb1.jpg" > </td> <td><img id="animated" src="images/thumb2.jpg" > </td> <td><img id="animated" src="images/thumb3.jpg" > </td> <td><img id="animated" src="images/thumb4.jpg" > </td> </tr> </table> </body> </html>DEMO