high-motion-web-performance

Diagnose and optimize animation-heavy websites built with GSAP, ScrollTrigger, shaders, and React.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/masermediagroup-stack/maser-media --skill high-motion-web-performance-masermediagroup-stack
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: high-motion-web-performance
Source: https://github.com/masermediagroup-stack/maser-media/tree/main/.codex/skills/high-motion-web-performance
Command: npx skills add https://github.com/masermediagroup-stack/maser-media --skill high-motion-web-performance-masermediagroup-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Animation-rich websites often suffer from mobile lag, dropped frames, janky scrolling, and poor Core Web Vitals because decorative effects consume too much main-thread, GPU, and memory budget. This Skill provides a structured framework for building, reviewing, and debugging high-motion sites so they stay smooth on real devices. ## Core Features & Use Cases - Effect Classification & Decision Framework: Maps each animation type (reveals, parallax, shaders, text splits, marquees) to the right rendering strategy across CSS, GSAP, canvas, and WebGL. - Device-Aware Implementation Rules: Covers React/Next.js client boundaries, GSAP matchMedia breakpoint plans, DPR capping, offscreen loop pausing, and reduced-motion fallbacks. - Diagnostic Workflow & Fix Patterns: Provides a production-build profiling process, trace category analysis, and concrete refactors such as replacing per-frame React state with quickSetter, CSS keyframes, or canvas loops. - Use Case: A creative agency landing page stutters when scrolling on phones. Use this Skill to profile the production build, identify a full-screen shader running on every route, gate it by breakpoint and viewport visibility, and verify the fix with before/after trace numbers. ## Quick Start Use the high-motion-web-performance skill to diagnose why my Next.js landing page with GSAP ScrollTrigger animations lags on mobile and propose fixes.

Frequently Asked Questions about high-motion-web-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix scroll lag on GSAP ScrollTrigger animations?▼

Profile a production build in Chrome Performance with mobile emulation, then reduce scrubbed timelines since they run during scrolling. Batch similar reveals, use gsap.matchMedia for separate mobile plans, and favor one-shot reveals over scrub on phones.

How to animate in React without causing rerenders every frame?▼

Avoid storing per-frame decorative values in React state. Use CSS keyframes for deterministic motion, GSAP quickSetter or quickTo for pointer and scroll updates, canvas or WebGL draw loops for many primitives, or CSS custom properties set outside React.

Should I use CSS animations or GSAP for web animations?▼

Use CSS keyframes for decorative deterministic loops and simple transform or opacity transitions. Use GSAP with ScrollTrigger for scroll-linked reveals, sequenced timelines, and breakpoint-specific motion plans that need cleanup via gsap.context in React.

Why do WebGL shaders cause lag on mobile devices?▼

Full-screen shaders strain mobile GPUs through high device pixel ratio, large textures, and continuous RAF loops. Cap DPR with Math.min(devicePixelRatio, 1.5), pause loops when offscreen or the tab is hidden, and provide static fallbacks for low-end devices.

When should I avoid smooth scrolling libraries on mobile?▼

Avoid smooth-scroll hijacking on mobile unless profiling justifies it, since it interferes with native touch scrolling during the most performance-sensitive interaction. Disable or reduce smooth-scroll wrappers on coarse-pointer and narrow-viewport devices.