What can i do to improve the codes? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What can i do to improve the codes?

Very less people see them so I have no idea what can be improved https://code.sololearn.com/W23kzzZZv96F/?ref=app https://code.sololearn.com/Wf0u4q0E2Uv7/?ref=app

6th Aug 2017, 2:56 PM
Prabhakar Dev
Prabhakar Dev - avatar
8 Respuestas
0
I find, finally it was not so hard https://code.sololearn.com/W0z0Fn1t3Hhu/?ref=app
7th Aug 2017, 2:48 PM
Αητοιπe
Αητοιπe - avatar
+ 1
Good work on them. Maybe you can add a feature like changing color after each loop.
6th Aug 2017, 4:21 PM
Avic Ndugu
Avic Ndugu - avatar
0
For loader animation 2, try to use classes instead of id, you can also delete div with id "l2" and rather create a before for you "l" div to optimise and minimize your code
6th Aug 2017, 5:10 PM
Αητοιπe
Αητοιπe - avatar
0
@antoine I didn't understand what you said
7th Aug 2017, 1:33 PM
Prabhakar Dev
Prabhakar Dev - avatar
0
Instead of that: <div id="l"><div id="l2"></div></div> <div id="l"><div id="l2"></div></div> <div id="l"><div id="l2"></div></div> <div id="l"><div id="l2"></div></div> Try that: <div class="l"></div> <div class="l"></div> <div class="l"></div> <div class="l"></div> <style> div.l:before{ content:""; position:absolute; top:50%;left:50%; transform: translate(-50%,-50%); height:40px; width:40px; background-color:#fff; animation:rot,sc 2s ease-in-out infinite; } </script>
7th Aug 2017, 1:40 PM
Αητοιπe
Αητοιπe - avatar
7th Aug 2017, 1:50 PM
Prabhakar Dev
Prabhakar Dev - avatar
0
Just add this in the css part: .l{ height:40px; width:40px; border:4px solid #fff; animation:rot 4s linear infinite; margin-left:60px; margin-top:60px; float:left; }
7th Aug 2017, 1:55 PM
Αητοιπe
Αητοιπe - avatar
0
Still not the same but looks good https://code.sololearn.com/WSgOQw0RYEWv/?ref=app
7th Aug 2017, 2:00 PM
Prabhakar Dev
Prabhakar Dev - avatar