0

How can I make a loader with increasing the border color size

24th Feb 2024, 7:15 AM
Muin Momin
Muin Momin - avatar
3 Respostas
+ 1
<style> body{ display:grid; place-items:center; height:100vh; } .loader{ border:1px solid blue; width:10px; height:10px; background-color:red; border-radius:50%; animation: morph 2s alternate infinite; } @keyframes morph{ 0%{ transform:scale(0px); } 50%{ border-color:green; } 100%{ transform:scale(500%) rotate(720deg); border-radius:0; border-color:red; border-style:dotted; background-color:gold; } } </style> <div class="loader"></div>
24th Feb 2024, 11:50 PM
Bob_Li
Bob_Li - avatar
+ 4
What did you try till now? Show your code.
24th Feb 2024, 7:38 AM
JaScript
JaScript - avatar
0
What programmin language? I might help if its Python.
24th Feb 2024, 9:14 AM
Abdo Kawji 🇸🇾
Abdo Kawji 🇸🇾 - avatar