---
title: "Discussion on \"Smooth Sun/Moon Animation with SVG Masks\" | Hashnode"
description: "Discussion on \"Smooth Sun/Moon Animation with SVG Masks\". Dark mode has thankfully become a fairly standard feature across the web over the past few years. While adding it to a recent webapp I was building, I wanted to create a slick little animated icon for the toggle button.\nIt turned out to be fairly str..."
url: "https://hashnode.com/posts/sunmoon-animation-svg-masks/64915bcd3effe15ba07acb08"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Smooth Sun/Moon Animation with SVG Masks](https://shawneither.hashnode.dev/sunmoon-animation-svg-masks?utm_source=hashnode&utm_medium=feed)

Dark mode has thankfully become a fairly standard feature across the web over the past few years. While adding it to a recent webapp I was building, I wanted to create a slick little animated icon for the toggle button. It turned out to be fairly str...

Jun 20, 2023 · 7 min read · shawneither.hashnode.dev  
Read the article

-   [#svg](https://hashnode.com/tag/svg)
-   [#svg-animation](https://hashnode.com/tag/svg-animation)
-   [#css-animation](https://hashnode.com/tag/css-animation)

## Written by

[Shaw](https://hashnode.com/@shawneither)

@shawneither

  
[View profile](https://hashnode.com/@shawneither)

Designer who codes

I am a designer who writes code and drinks coffee, not always in that order.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
