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
.ready | |
- var t = -1 | |
- var n = -1 | |
.letter.R | |
while n++ < 10 | |
.block(style={ "--index": ++t, "--angle": (147 * t) % 360, "--sign": t % 2 ? 1 : -1, "grid-area": "a" + (n+1) }) | |
.face.face-1 | |
.face.face-2 | |
.face.face-3 |
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 id="app"> | |
<div> | |
<button @click="task.start()">Start</button> | |
<button @click="task.stop()">Stop</button> | |
</div> | |
<textarea class="log">{{log}}</textarea> | |
</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
<div class="rainbow">RAINBOW</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
/** | |
* This shortcut function returns a timeline that you could build upon. | |
* a single value is assumed to be the end value | |
* this autoplays as it is intended to be fire and forget | |
*/ | |
JA.to('.target', 800, { opacity: 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
// declare timeline with references | |
const t1 = just.timeline({ | |
// false to ignore global definitions for references and props | |
globals: false, | |
references: { | |
entrance: "ease-out" | |
}, | |
props: { | |
x: {...} // property definitions | |
} |
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
const machine = LIBRARY.StateMachine({ | |
/* ... json data ... */ | |
}) | |
// move to the state | |
machine.transition('initial') | |
// move to both states simultaneously | |
machine.transition(['initial', 'secondary']) |
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
<!-- DO NOT REMOVE: imports current just-animate version --> | |
[[[http://codepen.io/notoriousb1t/pen/bwqqoB]]] | |
<!-- DO NOT REMOVE: imports current just-animate version --> | |
<div class="text-center"> | |
<div class="well"> | |
<span id="one" class="step">Step 1</span> | |
<strong id="two" class="step">Step 2</strong> | |
<em id="three" class="step">Step 3</em> | |
<span id="four" class="step">Step 4</span> |
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
# define mapper function | |
map <- function(list, fn) { | |
i <- 0; | |
len <- length(list); | |
result <- vector(length = len); | |
while (i < len) { | |
i <- i + 1; | |
result[i] <- fn(list[i]); | |
} |