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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Easiest way to make simple web animations?

3 点作者 miccah将近 4 年前
I want to create very simple interactive animations for some blog posts (hosted statically). What is the easiest way to go about doing this? I have tried using HTML Canvas but my gut tells me there is a better solution that may already exist.<p>As an example, I would like to create an animation displaying current flow through a transistor. The user can turn the gate on and off to see the electrons stop and start moving.<p>Thanks in advance!

1 comment

ranuzz将近 4 年前
Try PixiJS (<a href="https:&#x2F;&#x2F;www.pixijs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pixijs.com&#x2F;</a>). There are other similar JS libraries as well. Try searching for &#x27;pixijs vs ` in google. Personally I have used PixiJS for my blog too, which is also hosted statically.
评论 #27569387 未加载