Safety wrapper around the Web Animations API. Allows animations to safely be defined in Node, and browsers that don't support the Web Animation API. Default behavior is to do nothing.
var animation =var css =var html =var el = html`move.play()}>Hello planet`var keyFrames =transform: 'translateY(0%)'transform: 'translateY(100%)'var timingProperties =duration: 1000fill: 'forwards'var animate =var move =documentbody
animate = animation(keyFrames, timingProperties)
Create a new animation.
WebAnimation = animate(el, [done])
Apply an animation to an element, calls
done when finished. Returns the
nativate Web Animation object.