WebSharper.AnimeJs

Anime.js 4 bindings for F# — with WebSharper

Source

${notice}

Core animation

A single animate() instance driving transforms, colour, opacity and looping. The transport buttons act on the instance created by the buttons on the left.

${details}

Timeline

createTimeline() with several sequenced .add() steps and relative time offsets.

Stagger

stagger() spreads the delay across the grid; the origin is chosen with StaggerParams.

SVG

svg.createDrawable() animates the draw attribute, while svg.morphTo() morphs the path's d attribute.

Draggable

createDraggable() makes the box draggable inside its stage.

Helpers & API tour

The rest of the animejs namespace: get, set, remove, random, utils, eases, cubicBezier, spring and engine.

engine.timeUnit · precision
${engine}
anime.random(1, 100)
${random}
utils.clamp(1.5, 0, 1)
${clamp}
get(box, "opacity")
${opacity}
eases.outQuad(0.5)
${eases}
cubicBezier(...)(0.5)
${cubicBezier}
spring.solve(0.5)
${spring}

${status}