TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 dutzi_大约 5 年前
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).

暂无评论

暂无评论