Communitygithub.com

AbobakrDiara61/铁路系统

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

铁路系统 是什么?

这是一个基于Anime.js的动画技能,专为希望创建超越基本CSS过渡的高保真、令人惊叹的Web动画的开发者设计。该技能利用Anime.js轻量级但强大的引擎,支持复杂的动画编排,包括时间线管理、交错效果以及DOM、CSS和SVG属性动画。它适用于落地页编排、网格和文本的交错揭示、SVG路径动画,以及构建响应式用户输入的高互动性UI元件。执行工作流程包括识别目标元素、使用高级缓动函数(如spring和elastic)定义动画属性,以及通过anime.timeline()编排无缝的多阶段动画。该技能强调使用anime.stagger()来添加有机节奏,并注重性能优化,如使用will-change属性进行GPU加速,最终确保每个动画都显得定制、流畅且精致。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AbobakrDiara61/railway-system/tree/HEAD/frontend/skills/animejs-animation

在你喜欢的 AI 中提问

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

文档

Anime.js 动画技能

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

上下文

此技能用于创建超越简单 CSS 过渡的高保真、令人惊叹的 Web 动画。它是打造获奖级互动网站的首选工具。

何时使用

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

  • 创建复杂的、多阶段的落地页编排。
  • 为网格、文本或数据可视化的揭示实现交错动画。
  • 对 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 加速。

限制

  • 仅当任务明确符合上述范围时,才使用此技能。
  • 不要将输出视为替代特定环境验证、测试或专家审查的解决方案。
  • 如果缺少必要的输入、权限、安全边界或成功标准,请停下来要求澄清。

Individual skills in this repo

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

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

CRITICAL: Use for Makepad animation system. Triggers on: makepad animation, makepad animator, makepad hover, makepad state, makepad transition, "from: { all: Forward", makepad pressed, makepad 动画, makepad 状态, makepad 过渡, makepad 悬停效果

AbobakrDiara61/railway-system

Best practices for Remotion - Video creation in React

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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

AbobakrDiara61/railway-system

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.

AbobakrDiara61/railway-system

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

相关技能