Toggle-switches | Type Delta happy mule 45
html公开前 25 行,完整代码需登录
<label
for="themeToggle"
class="themeToggle st-sunMoonThemeToggleBtn"
type="checkbox"
>
<input type="checkbox" id="themeToggle" class="themeToggleInput" />
<svg
width="18"
height="18"
viewBox="0 0 20 20"
fill="currentColor"
stroke="none"
>
<mask id="moon-mask">
<rect x="0" y="0" width="20" height="20" fill="white"></rect>
<circle cx="11" cy="3" r="8" fill="black"></circle>
</mask>
<circle
class="sunMoon"
cx="10"
cy="10"
r="8"
mask="url(#moon-mask)"
></circle>
<g>