Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
中文简介正在准备中。当前显示原文说明。
Expert guide for web animations: SVG manipulation, Framer Motion 12+, GSAP 3, CSS Scroll-Driven Animations, and View Transitions API / Panduan ahli animasi web.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
<a name="english"></a>
A dedicated skill for crafting fluid, high-performance web animations and micro-interactions. Covers direct SVG manipulation (paths, masks, clip-paths), React-based animations using Framer Motion 12+, advanced timeline choreography with GSAP 3, native CSS Scroll-Driven Animations, and the View Transitions API for seamless page navigations.
Use Framer Motion for declarative component animations, layout animations, and gesture-driven interactions.
layout prop to automatically animate between flexbox/grid state changes.style={{ x, y }} with useTransform and useScroll instead of triggering React state updates on every frame.'use client'
import { motion, useScroll, useTransform } from 'framer-motion'
import { useRef } from 'react'
export function ScrollReveal({ children }: { children: React.ReactNode }) {
const ref = useRef(null)
const { scrollYProgress } = useScroll({ target: ref, offset: ['0 1', '1 1'] })
const y = useTransform(scrollYProgress, [0, 1], [100, 0])
const opacity = useTransform(scrollYProgress, [0, 1], [0, 1])
return (
<motion.div ref={ref} style={{ y, opacity }}>
{children}
</motion.div>
)
}
Use GSAP when you need highly coordinated timeline sequences, path tracing, or when working outside of React (Vanilla JS).
Where possible, leverage modern native CSS to tie animations to scroll position on the compositor thread for zero-JS performance.
@keyframes slide-in {
from { opacity: 0; transform: translateY(100px); }
to { opacity: 1; transform: translateY(0); }
}
.reveal-on-scroll {
animation: slide-in linear both;
animation-timeline: view();
animation-range: entry 25% cover 50%;
}
viewBox responsive.<path>, <circle>, and <mask/> elements via CSS vars or inline Framer Motion logic.M3 motion establishes physical purpose, directing user focus through spatial continuity:
M3 Easing & Duration Tokens:
:root {
/* M3 Easing Curves */
--md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0.0, 0, 1.0);
--md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1.0);
--md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0.0, 0.8, 0.15);
--md-sys-motion-easing-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
--md-sys-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0.2, 1.0);
/* M3 Durations */
--md-sys-motion-duration-short-4: 200ms;
--md-sys-motion-duration-medium-2: 300ms;
--md-sys-motion-duration-medium-4: 400ms;
--md-sys-motion-duration-long-2: 600ms;
}
M3 Container Transform Pattern (Framer Motion layoutId):
Morphing a card into a modal detail view with shared geometry:
import { motion, AnimatePresence } from 'framer-motion';
// M3 Container Transform with Emphasized Decelerate Easing
const m3Transition = {
duration: 0.4,
ease: [0.05, 0.7, 0.1, 1.0], // M3 Emphasized Decelerate
};
export function M3CardToDetail({ selectedId, onSelect, item }: any) {
return (
<>
<motion.div
layoutId={`m3-container-${item.id}`}
onClick={() => onSelect(item.id)}
className="bg-surface-container rounded-2xl p-4 cursor-pointer shadow-sm hover:shadow-md transition-shadow"
transition={m3Transition}
>
<motion.h3 layoutId={`m3-title-${item.id}`} className="text-lg font-medium text-on-surface">
{item.title}
</motion.h3>
<p className="text-sm text-on-surface-variant mt-1">{item.subtitle}</p>
</motion.div>
<AnimatePresence>
{selectedId === item.id && (
<motion.div
layoutId={`m3-container-${item.id}`}
className="fixed inset-4 md:inset-20 z-50 bg-surface-container-high rounded-3xl p-8 shadow-2xl flex flex-col"
transition={m3Transition}
>
<motion.h3 layoutId={`m3-title-${item.id}`} className="text-2xl font-bold text-on-surface">
{item.title}
</motion.h3>
<div className="mt-4 flex-1 overflow-y-auto text-on-surface-variant">
{item.fullContent}
</div>
<button
onClick={() => onSelect(null)}
className="mt-4 self-end bg-primary text-on-primary rounded-full px-6 py-2.5 font-medium"
>
Close
</button>
</motion.div>
)}
</AnimatePresence>
</>
);
}
Zero-tolerance principles for intentional, high-performance web motion:
prefers-reduced-motion Enforcement: Every animation MUST respect user accessibility settings. In Framer Motion, check useReducedMotion(); in CSS, provide @media (prefers-reduced-motion: reduce) { animation: none !important; transition: none !important; }.transform and opacity. Strictly ban animating layout triggers (top, left, width, height, margin, padding).damping: 5, stiffness: 500) on UI controls. Interactive components must use subtle, purposeful easings (cubic-bezier(0.16, 1, 0.3, 1)).IntersectionObserver or CSS content-visibility to halt animations when not in viewport.modern-web-guidance: Evaluates modern web animation specifications and scroll-driven APIs before implementation.modern-css-native-expert: Bridges CSS Scroll-Driven Animations and native View Transitions Level 2.ui-ux-pro-max and design-system-architect: Brings static UI/UX designs to life with harmonious timing.senior-frontend: Integrates declarative motion layers into React 19 / Next.js 15 architectures.seo: Balances rich visual landing page transitions with Core Web Vitals (INP/CLS).anti-slop: Enforces zero-bouncy slop, strict prefers-reduced-motion fallbacks, and compositor-only transforms.<a name="bahasa-indonesia"></a>
Skill khusus untuk membuat animasi web dan interaksi mikro yang lancar dan berkinerja tinggi. Mencakup manipulasi SVG langsung, animasi berbasis React menggunakan Framer Motion 12+, koreografi timeline lanjutan dengan GSAP 3, CSS Scroll-Driven Animations native, dan View Transitions API.
Gunakan Framer Motion untuk animasi komponen deklaratif, animasi layout, dan interaksi gestur.
useTransform dan useScroll yang beroperasi di luar siklus render React untuk performa 60fps.Gunakan GSAP untuk urutan timeline yang sangat terkoordinasi atau saat bekerja di luar ekosistem React. Plugin ScrollTrigger sangat berguna untuk merangkai aksi kompleks berdasarkan posisi scroll.
Manfaatkan CSS modern (animation-timeline: view()) untuk mengikat animasi ke posisi scroll langsung di compositor thread tanpa JavaScript sama sekali. Ini memberikan performa terbaik untuk efek paralaks dan reveal.
<clipPath> dan <mask> untuk transisi transisi pengungkapan gambar yang dramatis.Gerak dalam M3 memberikan kontinuitas spasial dan mengarahkan fokus pengguna:
emphasized-decelerate (cubic-bezier(0.05, 0.7, 0.1, 1.0)): Digunakan untuk elemen yang masuk ke layar (modal, drawer, sheet) dengan durasi 400ms.emphasized-accelerate (cubic-bezier(0.3, 0.0, 0.8, 0.15)): Digunakan untuk elemen yang meninggalkan layar dengan durasi 200ms.standard (cubic-bezier(0.2, 0.0, 0, 1.0)): Digunakan untuk transformasi bentuk dan pergeseran posisi dalam layar dengan durasi 300ms.layoutId pada Framer Motion.Prinsip nol toleransi untuk gerakan web yang fungsional dan berkinerja tinggi:
prefers-reduced-motion: Semua animasi WAJIB menghormati preferensi aksesibilitas pengguna (useReducedMotion() di Framer Motion, atau @media (prefers-reduced-motion: reduce) di CSS).transform dan opacity. Dilarang menganimasikan top, left, width, height, atau margin yang memicu re-layout dan lag.cubic-bezier(0.16, 1, 0.3, 1)).IntersectionObserver untuk mencegah boros baterai dan beban CPU.modern-web-guidance: Mengevaluasi spesifikasi animasi web modern dan API scroll-driven sebelum implementasi.modern-css-native-expert: Menjembatani CSS Scroll-Driven Animations dan native View Transitions Level 2.ui-ux-pro-max dan design-system-architect: Menghidupkan desain statis dengan ritme waktu yang harmonis.senior-frontend: Mengintegrasikan lapisan animasi deklaratif ke dalam arsitektur React 19 / Next.js 15.seo: Menyeimbangkan transisi landing page yang memukau dengan performa Core Web Vitals (INP/CLS).anti-slop: Menegakkan larangan animasi memantul berlebihan (bouncy slop), kewajiban fallback prefers-reduced-motion, dan animasi khusus compositor.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
中文简介正在准备中。当前显示原文说明。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Fast (Composer 2.5, Grok 4.7/4.6) to Medium (Gemini 4 Argon, GPT-5.6 Sol, Claude Opus 5.5) and High (Claude Sonnet 5.5, Claude Fable 5.1, Muse Wonder) / Panduan ahli untuk kaskade dan routing model cerdas.
中文简介正在准备中。当前显示原文说明。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
中文简介正在准备中。当前显示原文说明。
Master guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan utama komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
中文简介正在准备中。当前显示原文说明。
Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
中文简介正在准备中。当前显示原文说明。
Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.
中文简介正在准备中。当前显示原文说明。