Menu

One of our 76 pages has animations on it, and the 45-leaf one in the hero is not in the list
📰

One of our 76 pages has animations on it, and the 45-leaf one in the hero is not in the list

DEV Community: css·Daniel Pertu·about 22 hours ago
#RpiuB88l
#devtocss#devto#dev#illo#motion
Reading 0:00
15s threshold

document.getAnimations() is the most underused line in front-end debugging. It returns every animation the document currently knows about, each with a playState , a currentTime and the name of the keyframes driving it. One call tells you what is actually moving, as opposed to what your stylesheet says could move.

I ran it across all 76 public pages of Nakodo expecting a spread. The site is drawn rather than photographed, it has 24 @keyframes blocks in its stylesheet, and the landing page has a hero full of blowing leaves.

Here is the whole result:

Pages Animation objects

75 0

1 15

Every guide, every glossary entry, every pricing table, every hub: nothing.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.