HTML Video Maker

Free tool · nothing uploaded

CSS animation generator with live preview

Set duration, delay and easing with sliders, preview the animation live, and copy ready-to-paste CSS keyframes for your HTML video composition.

PREVIEW

Your content

style.css

Everything runs locally in this tab. Nothing you type is uploaded.

Why animate with CSS instead of a video editor

A keyframe in a video editor is a number hidden behind a drag. A keyframe in CSS is a line of text you can read, diff and generate. That difference matters the moment a video has to be reproduced: ten variants, three frame sizes, a new number every week.

CSS animations also happen to be the cheapest kind of motion to make reproducible in a renderer, because the browser already knows how to seek them. There is no frame counter to drift and no state to restore — set the animation's current time and the page is at that frame.

What the sliders actually control

Duration is how long the motion takes. Between 400ms and 800ms reads as confident; past a second it starts to feel like the page is loading.

Delay is when it starts. Almost every "designed" looking card is the same animation twice with delays 100–150ms apart. Copy the whole card at once and it reads as a slide change rather than an entrance.

Easing is the personality. cubic-bezier(.2,.8,.2,1) is a good default because it leaves fast and lands slowly. linear belongs on loops and progress bars, nowhere else. The springy curve overshoots on purpose — useful for a logo, silly on paragraph text.

Frame maths, because this is video

A browser animates in milliseconds; a video is a fixed number of frames. At 30 fps, an 800ms animation gets 24 frames, which is enough for a fade and not enough for a fast whip. At 60 fps you get 48. If a movement has to read clearly in a short clip, stay under 400ms and let the frames do fewer, cleaner steps.

The line under the code tells you the frame count for the settings you just chose, so you can see when a timing choice has become too coarse to survive encoding.

One warning about loops

pulse is the only preset that loops, and it is set to infinite alternate so you can judge it in the preview. In a rendered clip, an infinite animation keeps running until the last frame — so either bound it with a fixed iteration count or leave it for pages that people watch, not videos they download.

Where the output goes

The CSS you copy is plain keyframes plus one class, which means it works in three places: the HTML to video editor where you check the timing, a static page you open in a browser, and a HyperFrames composition that renders it to MP4. If the timing looks right in all three, it is right.

Combine two or three of these animations with staggered delays and you have most of the entrance motion used in short-form video; the examples page shows what that looks like in a complete composition.

Frequently asked questions

What exactly do I get from the generator?

Plain CSS with one class and its keyframes — about eight lines. Paste it into your stylesheet or into the style.css pane of the HTML to video editor; there is no library and no build step.

What duration should I use for a video?

400–800ms for entrances, under 400ms for anything that has to read in a short clip, and 100–150ms of stagger between elements of the same card. Longer than a second reads as lag rather than motion.

Why does the pulse preset keep going in the preview?

Because it is set to loop. Rendered video stops at the last frame whether the animation has finished or not, so either add a fixed iteration count or keep loops for interactive pages.

Does the CSS work in HyperFrames and Remotion?

Yes. The generator writes standard @keyframes that any browser runs, so the same CSS plays in a browser preview and can be seeked frame by frame by a renderer such as HyperFrames.