Communitygithub.com

BEKO2210/Firstbrain

高级JavaScript动画库技能,用于创建复杂、高性能的Web动画。

Firstbrain 是什么?

此技能封装了Anime.js动画引擎,专为创建远超简单CSS过渡的高保真、令人惊艳的Web动画而设计。它能够处理复杂的多阶段登陆页面编排、网格与文本的错落动画、SVG路径动画(如形状变形、动态线条绘制),以及高度交互的动感UI元素。该技能支持任何基于Web的平台(如浏览器环境),通过精准控制DOM、CSS和SVG属性,结合高级缓动函数(如弹性、弹簧)和`anime.timeline()`时间线编排,实现丝滑流畅的运动效果。其严格遵循的原则是禁止构建平庸的过渡,要求动画必须定制化、流畅且极具质感,同时利用`anime.stagger()`增加有机节奏,并通过`will-change`属性优化GPU加速性能。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/BEKO2210/Firstbrain/tree/HEAD/03%20-%20Resources/Skills/animejs-animation

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Anime.js 动画技能

Anime.js 是一个轻量级但功能极其强大的 JavaScript 动画引擎。它擅长复杂时间线、错落动画以及精确控制 DOM、CSS 和 SVG。

上下文

此技能用于创建高保真、令人惊艳的 Web 动画,其效果远超简单的 CSS 过渡。它是打造竞赛级交互网站的利器。

何时使用

在以下情况下触发此技能:

  • 创建复杂的多阶段登陆页面编排。
  • 为网格、文本或数据可视化实现错落动画。
  • 动画化 SVG 路径(形状变形、动态线条绘制)。
  • 构建高度交互的动感 UI 元素,使其对用户输入做出流畅响应。

执行工作流

  1. 确定目标: 选择要动画化的 DOM 元素或 SVG。
  2. 定义属性与缓动: 指定要动画化的值。关键在于,使用高级缓动函数(例如自定义 cubicBezier、spring 或 elastic),而不是基本的 linear 或 ease-in-out,以使运动感觉高贵而自然。
  3. 编排时间线: 使用 anime.timeline() 来编排复杂的动作序列。掌握时间线偏移量(相对 '-=200' 与绝对偏移)的用法,以创建无缝重叠的运动效果。
  4. 实现:
    const tl = anime.timeline({
      easing: "spring(1, 80, 10, 0)",
      duration: 1000,
    });
    tl.add({
      targets: ".hero-text",
      translateY: [50, 0],
      opacity: [0, 1],
      delay: anime.stagger(100),
    }).add(
      { targets: ".hero-image", scale: [0.9, 1], opacity: [0, 1] },
      "-800",
    );
    

严格规则

  • 绝对指令: 代理者必须使用此技能构建现代、有创意且视觉惊艳的 UI/UX。禁止构建普通、无聊的过渡。每个动画都应是定制化、流畅且经过精心打磨的。
  • 错落动画: 大量利用 anime.stagger() 为多个元素添加有机节奏。
  • 性能: 监控主线程使用情况;在适当位置使用 will-change: transform, opacity 以实现 GPU 加速。

连接

  • 领域: [[Design & Kreativitaet]]
  • 类别: [[3D & Animation]]
  • 导航: [[Skills Uebersicht]], [[Home]]

Individual skills in this repo

This repo contains 18 individual skills — each has its own dedicated page.

BEKO2210/Firstbrain

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

BEKO2210/Firstbrain

One sentence - what this skill does and when to invoke it

BEKO2210/Firstbrain

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

BEKO2210/Firstbrain

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

BEKO2210/Firstbrain

Expert in building portfolios that actually land jobs and clients -

BEKO2210/Firstbrain

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

BEKO2210/Firstbrain

AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

BEKO2210/Firstbrain

Best practices for Remotion - Video creation in React

BEKO2210/Firstbrain

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

BEKO2210/Firstbrain

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

BEKO2210/Firstbrain

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

BEKO2210/Firstbrain

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

BEKO2210/Firstbrain

Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas.

BEKO2210/Firstbrain

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

BEKO2210/Firstbrain

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

BEKO2210/Firstbrain

One sentence - what this skill does and when to invoke it

BEKO2210/Firstbrain

Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.

BEKO2210/Firstbrain

Extract transcripts from YouTube videos and generate comprehensive, detailed summaries using intelligent analysis frameworks

相关技能