Skip to content
Icon Pantry

Animated sun and moon icon

The sun and moon icon with a float animation. Try other motions, change the color and speed, then download an animated SVG for the web, or a GIF or WebP for email, Slack, Notion and slides.

16
20
24
32
48
Style
Animation

Clouds, rockets, balloons, ghosts and planes.

Color
GIF and WebP size

Animated SVG for websites and apps (plays in browsers, stops for people who prefer reduced motion). GIF for email, Slack, Notion and slides. WebP for sharp, small web animations. Free for personal and commercial use. No attribution required.

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" overflow="visible" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><style>@keyframes ip-float{0%{transform:translate(0px,0px) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(0px,-1.6px) rotate(-2deg) scale(1,1);opacity:1}100%{transform:translate(0px,0px) rotate(0deg) scale(1,1);opacity:1}}.ip-float{animation:ip-float 3s cubic-bezier(.65,0,.35,1) infinite;transform-box:view-box;transform-origin:12px 12px}@media (prefers-reduced-motion:reduce){.ip-float,.ip-float .ip-d{animation:none!important;stroke-dashoffset:0!important}}</style><g class="ip-float"><path d="M21 16.5a5.5 5.5 0 0 1-6.5-6.5 5.5 5.5 0 1 0 6.5 6.5"/><circle cx="7" cy="7" r="2.5"/><path d="M7 2v1m0 8v1M2 7h1m8 0h1M3.5 3.5l.7.7m6.3-.7-.7.7m-6.3 6.3.7-.7"/></g></svg>