Upload
- Source
- Uiverse ↗
- Author
- SelfMadeSystem
- Licence
- MIT
Loading…
Code
<button class="button">
<svg xmlns="http://www.w3.org/2000/svg">
<rect class="border" pathLength="100"></rect>
<rect class="loading" pathLength="100"></rect>
<svg
class="done-svg"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<path
class="done done-cloud"
pathLength="100"
d="M 6.5,20 Q 4.22,20 2.61,18.43 1,16.85 1,14.58 1,12.63 2.17,11.1 3.35,9.57 5.25,9.15 5.88,6.85 7.75,5.43 9.63,4 12,4 14.93,4 16.96,6.04 19,8.07 19,11 q 1.73,0.2 2.86,1.5 1.14,1.28 1.14,3 0,1.88 -1.31,3.19 Q 20.38,20 18.5,20 Z"
></path>
<path
class="done done-check"
pathLength="100"
d="M 7.515,12.74 10.34143,15.563569 15.275,10.625"
></path>
</svg>
</svg>
<div class="txt-upload">Upload</div>
</button>Prompt
Build "Upload", a button animation. Write it as plain HTML and CSS: one container element and a stylesheet, no JavaScript unless it is essential. Technique: CSS keyframes, inline SVG. It sits on a light background, in a 16:10 frame. Respect prefers-reduced-motion with a still state, pause work when the element is off screen, and keep it accessible. Original: https://uiverse.io/SelfMadeSystem/quiet-panda-44 (SelfMadeSystem, MIT).