CSS owns the animation
JavaScript only changes the data-viewake-state attribute. Add a new animation with CSS alone.
A tiny, direction-aware reveal library with predictable once and replay modes. Framework-agnostic core, CDN build, React, Next.js, and Vue support.
Pass me, return above me, and scroll down again to compare modes.
<div data-viewake="fade-up" data-viewake-mode="replay" data-viewake-delay="200" data-viewake-duration="600" data-viewake-easing="cubic-bezier(0.22, 1, 0.36, 1)">Put threshold: 0.25 in Viewake.init({ threshold: 0.25 }).Waiting for movement…