A Pen by Joris van Raaij on CodePen.
Forked from anonymous/an-endless-hike-on-a-tiny-world.markdown
Created
June 29, 2017 05:10
-
-
Save califat/c423c8a0d04773155d97bb3acc08f472 to your computer and use it in GitHub Desktop.
An endless hike on a tiny world
This file contains 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 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 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 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