Motion icon · Free
Switch icon — animated SVG
A free switch motion icon that acts out its meaning. The animation is pure CSS inside the SVG, so it works in any website or app without Lottie or JavaScript. 24px grid, 2px stroke, round caps. Free for personal and commercial use.
Open in UAssetHover SVG code (plays when hovered)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="uah-toggle-switch" overflow="visible"><style>.uah-toggle-switch g.uam,.uah-toggle-switch [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-toggle-switch:hover,:hover>.uah-toggle-switch,:focus-visible>.uah-toggle-switch) .pa{animation:uaLnR8 0.70s cubic-bezier(.65,0,.35,1) 0s 1 both}@keyframes uaLnR8{0%,100%{transform:none}50%{transform:translateX(8px)}}@media (prefers-reduced-motion:reduce){.uah-toggle-switch *{animation:none!important}}</style><g class="uam"><rect pathLength="1" x="2" y="6" width="20" height="12" rx="6"/><g class="pa"><circle pathLength="1" cx="8" cy="12" r="2.5"/></g></g></svg>Looping SVG code
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="ual-toggle-switch" overflow="visible"><style>.ual-toggle-switch g.uam,.ual-toggle-switch [class^=p]{transform-box:fill-box;transform-origin:center}.ual-toggle-switch .pa{animation:uaLnR8L 1.82s cubic-bezier(.65,0,.35,1) 0s infinite}@keyframes uaLnR8L{0.0%,38.0%{transform:none}19.0%{transform:translateX(8px)}}@media (prefers-reduced-motion:reduce){.ual-toggle-switch *{animation:none!important}}</style><g class="uam"><rect pathLength="1" x="2" y="6" width="20" height="12" rx="6"/><g class="pa"><circle pathLength="1" cx="8" cy="12" r="2.5"/></g></g></svg>
Static SVG code
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect pathLength="1" x="2" y="6" width="20" height="12" rx="6"/><g class="pa"><circle pathLength="1" cx="8" cy="12" r="2.5"/></g></svg>
Tags: interface, line, outline, stroke, switch, toggle
More Interface motion icons
MenuMenu LeftSidebarPanel RightLayout GridLayout ListDashboardSettingsSlidersMoreMore VerticalMaximizeMinimizeToggle OffToggle OnFilterSortEyeEye OffLoaderSquare CheckRadio ButtonColumnsPointer