Skip to content

Instantly share code, notes, and snippets.

@fiddlerwoaroof
Created February 26, 2021 01:33
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 fiddlerwoaroof/33b820ae5cba73cc49a171e88e5992b9 to your computer and use it in GitHub Desktop.
Save fiddlerwoaroof/33b820ae5cba73cc49a171e88e5992b9 to your computer and use it in GitHub Desktop.
First State&
First State&
Animation
AnimationRunning
animationDone -> AnimationDone
AnimationDone
refresh -> Animation
Screen
Idle
animationDone -> Ready
Ready
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
model.active_states.map(v => $("div", {}, v.name)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment