animate-svg-wrapper-instead-of-svg-element

Community

Smooth 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-spin to an SVG icon within a React component by wrapping the SVG in a div and applying the animation class to the div.

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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.