@VincentLogic: 发现个前端圈公认的动画神器,68K stars 真的不是吹的! anime.js —— 一个轻量级但功能极其强大的 JavaScript 动画引擎。 前端兄弟们又来享福了,这玩意儿简直是“动画师的瑞士军刀”: 全能型选手 不管是 CSS …
摘要
Anime.js 是一个轻量级但功能强大的 JavaScript 动画引擎,支持 CSS、SVG、DOM 属性及 JavaScript 对象动画,具有直观的 API、时间线系统、滚动观察器、拖拽和响应式动画等特性,在 GitHub 上拥有 68K stars,是前端开发者和交互设计师的常用工具。
查看缓存全文
缓存时间: 2026/05/16 07:14
发现个前端圈公认的动画神器,68K stars 真的不是吹的!
anime.js —— 一个轻量级但功能极其强大的 JavaScript 动画引擎。
前端兄弟们又来享福了,这玩意儿简直是“动画师的瑞士军刀”:
全能型选手 不管是 CSS 属性、SVG、DOM 属性,还是 JavaScript 对象,它都能让你动起来。想搞顺滑的光标特效、复杂的滚动视差、还是丝滑的 UI 过渡,它全包了。
API 直观且轻量 代码写起来非常优雅,像写时间线一样简单。支持模块化引入,你只需要引入你需要的部分,保持 bundle 体积超小,性能拉满。
开箱即用 官网(http://animejs.com)上全是酷炫的 Demo,每个动画都直接配好了代码,一键复制就能用,拿去二次创作简直不要太方便。
看它那个相机拆解的动画演示,流畅度真的绝了。搞前端开发、做交互设计的,这个库必须收藏在工具箱里。
项目地址放评论区了
Anime.js | JavaScript Animation Engine
Source: https://animejs.com/
Intuitive API
Animate faster with an easy-to-use, yet powerful animation API.
Enhanced transforms
Smoothly blend individual CSS transform properties with a versatile composition API.
Scroll Observer
Synchronise and trigger animations on scroll with the Scroll Observer API.
Advanced staggering
Create stunning effects in seconds with the built-in Stagger utility function.
SVG toolset
Morph shapes, follow motion paths, and draw lines easily with the built-in SVG utilities.
Springs and draggable
Drag, snap, flick and throw HTML elements with the fully-featured Draggable API.
Runs like clockwork
Orchestrate animation sequences and keep callbacks in sync with the powerful Timeline API.
Responsive animations
Make animations respond to media queries easily with the Scope API.
animate('.square', {
rotate: 90,
loop: true,
ease: 'inOutExpo',
});
animate('.shape', {
x: random(-100, 100),
y: random(-100, 100),
rotate: random(-180, 180),
duration: random(500, 1000),
composition: 'blend',
});
animate('.car', {
...createMotionPath('.circuit'),
});
animate(createDrawable('.circuit'), {
draw: '0 1',
});
animate('.circuit-a', {
d: morphTo('.circuit-b'),
});
animate(createDrawable('path'), {
draw: ['0 0', '0 1', '1 1'],
delay: stagger(40),
ease: 'inOut(3)',
autoplay: onScroll({ sync: true }),
});
const options = {
grid: [13, 13],
from: 'center',
};
createTimeline()
.add('.dot', {
scale: stagger([1.1, .75], options),
ease: 'inOutQuad',
}, stagger(200, options));
createDraggable('.circle', {
releaseEase: createSpring({
stiffness: 120,
damping: 6,
})
});
createTimeline()
.add('.tick', {
y: '-=6',
duration: 50,
}, stagger(10))
.add('.ticker', {
rotate: 360,
duration: 1920,
}, '<');
createScope({
mediaQueries: {
portrait: '(orientation: portrait)',
}
})
.add(({ matches }) => {
const isPortrait = matches.portrait;
createTimeline().add('.circle', {
y: isPortrait ? 0 : [-50, 50, -50],
x: isPortrait ? [-50, 50, -50] : 0,
}, stagger(100));
});
- Timer5.60 KB
- Animation+5.20 KB
- Timeline+0.55 KB
- Animatable+0.40 KB
- Draggable+6.41 KB
- Scroll+4.30 KB
- Scope+0.22 KB
- SVG0.35 KB
- Stagger+0.48 KB
- Spring0.52 KB
- WAAPI3.50 KB
相似文章
@hhmy27: 分享下 Kimi k2.6 的编程体验 这次主打审美能力升级,我直接 vibe 了一下Interface Craft 这个页面动效,效果还不错的 我看了下代码,主要是它会用 Framer 和 GASP 这些技术,所以页面效果看起来还蛮有质…
Kimi k2.6 improves aesthetic coding skills, generating polished Interface Craft page animations using Framer and GSAP.
@servasyy_ai: 3D开发者多年来苦练的物理演算,仅凭一句话就能搞定。 从英语指令生成复杂的3D粒子效果,并能立即输出React或three.js代码的免费工具问世。 数学与物理引擎的壁垒消失,即时将创意转化为实体的时代到来。 体验
一款免费工具发布,能够根据英语指令生成复杂的3D粒子效果,并直接输出React或three.js代码,降低了3D物理演算的门槛。
@VincentLogic: 发现个字节开源的桌面 AI 神器! UI-TARS Desktop,31k stars 不是吹的,这玩意儿真能看懂你的屏幕,然后帮你自动操作电脑。 你告诉它"帮我把 VS Code 的自动保存打开,延迟改成 500 毫秒",它就自己: -…
字节跳动开源的桌面 AI 自动化工具 UI-TARS Desktop 支持本地运行与屏幕视觉理解,可通过自然语言指令自主操控电脑完成日常任务。
@0xajc: 稍微好一点,感觉还是挺厉害的,大幅降低了launch video的生产成本,基本没怎么费力,主要是我们网站的素材确实垃圾了一点 @nuwa_world Hyperframe上手也简单,用cc的话装heygen的skills就行了,跟cod…
Hyperframe工具大幅降低了launch视频的制作成本,集成了Heygen的技能,使用简单,只需通过npx命令添加技能即可。
@berryxia: 兄弟们! 不要重复造轮子,直接拿这个31.4K Star的开源来干吧! 字节跳动把 UI-TARS-desktop 开源了,看了一眼,这个项目已经上线快一年了! 目前 Star 数已经来到 31.4k,而且增长速度还挺稳。 24 小时增长…
ByteDance open-sourced UI-TARS-desktop, a native desktop GUI agent with 31.4k GitHub stars that uses vision models to control local or remote applications via natural language. The tool runs locally for privacy, supports Windows and macOS, and includes a CLI with streaming output for developers.