TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: The imperative approach to animations just makes so much more sense

1 pointsby dutzi_about 5 years ago
For me, writing animations declaratively is just painful.<p>So I made a tiny animation orchestrating library for React and React Router and wrote the following post about it and a bit about why thee declarative approach to animations is such a nightmare for me.<p>https:&#x2F;&#x2F;dutzi.party&#x2F;animating-route-transitions-using-react-router&#x2F;<p>The relevant bit:<p>&gt; I don’t like writing complex animations in a declarative manner. They’re great for interactions, but I find that compared to animations written in an imperative way, the learning curve is steep, code readability suffers and playing around (just testing stuff out) is not as fun as the feedback loop tends to be longer. That may be because I started my way out as a Flash (ActionScript) developer, where tween animations were very popular...<p>Would love to hear why declarative animation libraries are so popular with React (other than the fact that they follow React&#x27;s basic approach to well, everything).

no comments

no comments