Skip to content

How to Animate SVG Icons with CSS

Add a CSS class to your inline SVG element and apply transform or stroke-dasharray keyframes. Using transform: scale() or rotate() with transform-origin: center creates smooth 60fps hover and loading animations without JavaScript.

Verified facts about this site

  • Export formats: Optimized SVG, PNG, WebP, React TSX, Vue 3 SFC, Svelte, CSS mask or data URI, SVG sprite
  • Raster export sizes: 64px, 128px, 256px, 512px, 1024px, 2048px
  • Workspace upload cap per file: 2 MB
  • License and author are documented on every icon page.

Related pages on SVG Nexus

← Practical SVG Guides and Tutorials

Type to search 76,166 vector icons...

Navigate | Enter Open Explore All Icons

Compare

Icon Source and License

License Commercial use Attribution Modify or recolor
MITAllowedNotice in bundleAllowed
ISCAllowedNotice in bundleAllowed
Apache-2.0AllowedRequired with notice fileAllowed
CC BY 4.0AllowedCredit requiredAllowed
CC-BY-SA-4.0AllowedShareAlikeShareAlike
Trademark / BrandReferential use onlyOwner guidelinesRestricted

Icon Preview