animate-svg-wrapper-instead-of-svg-element
CommunitySmooth SVG animations
Authorihj04982
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the issue of poor browser hardware acceleration for CSS animations applied directly to SVG elements, leading to choppy animations.
Core Features & Use Cases
- Hardware Acceleration: Enables smooth, GPU-accelerated animations for SVGs by animating a wrapper element.
- Improved Performance: Ensures fluid transitions, transforms, and opacity changes for SVG graphics.
- Use Case: Apply CSS animations like
animate-spinto an SVG icon within a React component by wrapping the SVG in adivand applying the animation class to thediv.
Quick Start
Wrap your SVG element in a div and apply CSS animations to the div instead of the SVG.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: animate-svg-wrapper-instead-of-svg-element Download link: https://github.com/ihj04982/my-cursor-settings/archive/main.zip#animate-svg-wrapper-instead-of-svg-element Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.