How it works
playSegments([0, end]) / playSegments([end, 0]) or setDirection(-1) for reversible toggles.
Menu ↔ close, like-heart burst and checkbox — each Lottie plays forward/back as a toggle.
playSegments([0, end]) / playSegments([end, 0]) or setDirection(-1) for reversible toggles.
Each animation is ~2–9 KB of JSON; lottie-web is loaded once and shared.
Real <button aria-pressed>; reduced mode jumps straight to the end frame.
{
"speed": 1
}