Skip to content

Instantly share code, notes, and snippets.

@Qyoom
Created March 23, 2017 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qyoom/80973a56a85898275182f11bd2e8d38b to your computer and use it in GitHub Desktop.
Save Qyoom/80973a56a85898275182f11bd2e8d38b to your computer and use it in GitHub Desktop.
MOjs lab 3
var time = 0;
function expando() {
time = time + 1000;
return new mojs.Shape({
shape: 'circle',
scale: { 0 : 10.5 },
fill: { 'white' : 'black' },
duration: 10000,
delay: time
//repeat: 1
})
}
var i = 0;
do {
i += 1;
expando().play();
} while (i < 100);
//const shape1 = expando();
//shape1.play();
//const shape2 = expando();
//shape2.play();
<script src="https://cdn.jsdelivr.net/mojs/0.265.6/mo.min.js"></script>
<script src="https://cdn.jsdelivr.net/mojs-player/0.43.15/mojs-player.min.js"></script>
body, html {
padding: 0;
}
body {
background: rgba(241, 226, 215, 0.2);
}
@Qyoom
Copy link
Author

Qyoom commented Mar 23, 2017

Fooling around with MOjs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment