A Pen by Joris van Raaij on CodePen.
Created
June 29, 2017 19:02
-
-
Save troglotit/546f6127d612cd5ec59f8d28a5bfbfc7 to your computer and use it in GitHub Desktop.
An endless hike on a tiny world
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 class='bm_container'></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
bodymovin.loadAnimation({ | |
wrapper: document.querySelector('.bm_container'), // the dom element | |
animType: 'svg', | |
loop: true, | |
autoplay: true, | |
prerender: true, | |
path: 'https://jorisvanraaij.nl/codepen/flamingo/flamingo.json' // the animation data | |
}); | |
bodymovin.setSpeed(1.0); |
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="https://jorisvanraaij.nl/codepen/flamingo/bodymovin.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 { | |
margin: 0; | |
background-color: #161E35; | |
} | |
.bm_container { | |
width: 90%; | |
height: 90%; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
top: 0; | |
margin: auto; | |
position: absolute; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment