wish: a tiny promise

The JavaScript Promises feature arrived in browsers natively around 2014. (See also: current support for promises)

Example: Fetch location, then weather data

I. With callbacks, not Promises


timeout and interval

Three ways to look at animations

I. Using CSS

[CSS3 animation shorthand (w3/spec)]

@keyframes once { /* something */ }
@keyframes repeat { /* something */ }

#thing { animation:once 3s }…