Why this animation is generating | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why this animation is generating

A simple ":" is creating animation in html. https://code.sololearn.com/W2COvhMF1x0o/?ref=app

31st Aug 2020, 3:41 PM
मनु राय ब्रह्मर्षि
मनु राय ब्रह्मर्षि - avatar
4 Answers
+ 3
So ugly that it is almost nice 💯
31st Aug 2020, 3:47 PM
Oma Falk
Oma Falk - avatar
+ 1
Try it elsewhere than sololearn if it works. Sololearn even so <div> of head tag. I think sololearn getting second progress as css content due to : and ;
31st Aug 2020, 3:46 PM
Divya Mohan
Divya Mohan - avatar
0
Browser engine is very kind, when it fail to parse an element, it will just assume a default behaviour for rendering the element. Here your second progress element's attributes are not well parsed (due to the use of colons and semicolons), so browser simply render a default progress element. Try add a default progress element <progress></progress> in your code, you'll see that a default progress element is behaving similarly to the second progress which uses colons and semicolons.
31st Aug 2020, 8:09 PM
Ipang