A Pen by Richard Walker on CodePen.
Created
March 23, 2017 03:17
-
-
Save Qyoom/80973a56a85898275182f11bd2e8d38b to your computer and use it in GitHub Desktop.
MOjs lab 3
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
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(); |
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://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> |
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, html { | |
padding: 0; | |
} | |
body { | |
background: rgba(241, 226, 215, 0.2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fooling around with MOjs.