A Pen by Michael Lewis on CodePen.
Created
December 28, 2015 06:14
-
-
Save nsisodiya/5da7798c538fcb52d995 to your computer and use it in GitHub Desktop.
Button Submit With Progress Bar 01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="bodymovin"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var animData = { | |
| container: document.getElementById('bodymovin'), | |
| renderer: 'svg', | |
| loop: false, | |
| autoplay: false, | |
| animationData: animationData | |
| }; | |
| var anim = bodymovin.loadAnimation(animData); | |
| $( "#bodymovin" ).click(function() { | |
| bodymovin.play(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="http://frozenpixels.net/dev/codepen/bodymovin/bodymovin.js"></script> | |
| <script src="http://frozenpixels.net/dev/codepen/bodymovin/button-data01.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body{ | |
| background-color:#000; | |
| margin: 0px; | |
| height: 100%; | |
| font-family: sans-serif; | |
| font-size: 10px; | |
| overflow: hidden; | |
| } | |
| #bodymovin{ | |
| width:640px; | |
| height:360px; | |
| background-color:#000; | |
| display:block; | |
| overflow: hidden; | |
| transform: translate3d(0,0,0); | |
| margin: auto; | |
| cursor:pointer; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment