css-animations

Map DOM CSS animations to seekable handles for deterministic playback in HyperFrames.

248|32|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/boraoztunc/skills --skill css-animations-boraoztunc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: css-animations
Source: https://github.com/boraoztunc/skills/tree/main/css-animations
Command: npx skills add https://github.com/boraoztunc/skills --skill css-animations-boraoztunc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This CSS Animation adapter for HyperFrames solves the challenge of achieving deterministic CSS-based motion within HyperFrames by mapping DOM animations to seekable handles during playback and rendering.

Core Features & Use Cases

  • Adapter-driven CSS animation seeking: discovers elements with animation-name and seeks the corresponding Animation handles when available.
  • Finite timing controls and synchronization: requires finite animation-duration and animation-iteration-count, and uses a data-start value to align local animation time with the clip.
  • Use cases: decorative loops, shimmer, masks, and subtle parallax layers where CSS motion should be deterministic and low-overhead.

Quick Start

Add a CSS animation to your element with data-start and data-duration attributes and let the HyperFrames CSS adapter seek and play it deterministically.

Frequently Asked Questions about css-animations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make CSS animations deterministic for consistent playback across previews and renders?

Deterministic CSS animations are achieved by mapping DOM animation elements to seekable handles. This ensures motion timing remains predictable during playback by aligning local animation time with the clip using a data-start attribute.

What's the best way to synchronize decorative CSS loops and parallax layers with a video timeline?

Synchronizing decorative CSS loops and parallax layers requires finite animation-duration and animation-iteration-count values. You then use a data-start attribute to align local animation time with the clip for predictable rendering.

How does the WAAPI-backed CSS animation adapter handle seekable playback?

The WAAPI-backed adapter discovers elements with an animation-name and seeks the corresponding Animation handles. It controls playback deterministically and provides fallback behavior when WAAPI-backed handles are unavailable.

Do I need finite animation-duration and animation-iteration-count to use deterministic CSS motion?

Yes, finite animation-duration and animation-iteration-count are required for deterministic CSS motion. These finite timing controls ensure the adapter can accurately seek and map the animation to the clip timeline.

Why does my CSS animation timing drift during rendering and previews?

CSS animation timing drifts when elements lack proper synchronization attributes. Mapping DOM animations to seekable handles with a data-start value ensures timing remains predictable and aligned across previews and renders.

Can I use CSS entry reveals and shimmer effects with deterministic playback controls?

Yes, entry reveals and shimmer effects work with deterministic playback controls. The adapter maps these interface motions to seekable handles, ensuring low-overhead and predictable timing during rendering.