Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save troglotit/546f6127d612cd5ec59f8d28a5bfbfc7 to your computer and use it in GitHub Desktop.
Save troglotit/546f6127d612cd5ec59f8d28a5bfbfc7 to your computer and use it in GitHub Desktop.
An endless hike on a tiny world
<div class='bm_container'></div>
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);
<script src="https://jorisvanraaij.nl/codepen/flamingo/bodymovin.js"></script>
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