List Animation Generator
← SkillSafe

Animate a list and copy the code

Type your items. Get a list or grid that staggers in, and adds, removes and reorders smoothly, as HTML, CSS and JS or React.

One item per line, or separate them with commas. You can drop a .txt or .csv file here too.

Nothing in mind? Try one:

How it works

  1. Type your items. One per line or separated by commas: "Milk, Eggs, Bread". Bullets and numbers are taken off, and a colour like #fef3c7 sets the item colour. You can also drop a .txt or .csv file.
  2. Watch it and try it. The preview is a real list: it staggers in, and "Add one", "Remove one" and "Shuffle" show the entrance, the exit and the slide to a new place. Every change you make plays again.
  3. Check it. The page checks the timing against the animation rules for lists and grids (a stagger of 30 to 75 ms, entering in 200 to 300 ms with ease-out, leaving in 150 to 200 ms, reordering in 250 to 350 ms, a total stagger of at most 500 to 800 ms) and the text contrast, and tells you when the last item is in place.
  4. Copy it. As HTML, CSS and JS, CSS only, HTML only, the JavaScript function that adds, removes and reorders items, or a React component, or download a standalone .html page.

Questions

How long should a list stagger be?
The lists-grids skill starts each item 30 to 75 ms after the one before and lets the whole stagger grow to at most 500 to 800 ms. Each item arrives in 200 to 300 ms with ease-out, leaves in 150 to 200 ms with ease-in, and slides to a new place in 250 to 350 ms with ease-in-out.
What happens with a long list?
The stagger stops growing at the limit you set. Every item after that point arrives together with the last staggered one, so the 40th item never waits 2 seconds. The page tells you when the last item is in place.
Do moved items replay their entrance?
No. Once an item has arrived it gets a class that switches its entrance off, so a sort or a shuffle only slides it. The slide uses the FLIP technique: each item is measured before and after the change and animated from where it was to where it is now.
Is anything uploaded?
No. The list, the check and the code are made in your browser. The optional AI advice sends the settings, the first items and your description, only when you press its button. If you sign in, the lists you copy or download are also kept in your SkillSafe account.
Do I need JavaScript?
Not for the entrance: the stagger is CSS, with each item's place in the wave set by a --i number in its style. Adding, removing and reordering with motion needs the small initAnimatedList function, and the React component measures and slides items the same way.