+ 3

Animate

Using animate tag is not in contrast whit seperation of concerns (SoC)? why we don't use javascript for creating animations?

9th Apr 2019, 10:43 PM
Mo3n
Mo3n - avatar
6 ответов
+ 2
Robin Rademaker thanks man 😊
13th Apr 2019, 10:53 AM
Mo3n
Mo3n - avatar
+ 1
Good question, you can animate in css and in JavaScript, so what is the advantage of doing it in html as well🤔 I agree now that I know what you mean this doesn't make a lot of sense https://en.wikipedia.org/wiki/Separation_of_concerns
12th Apr 2019, 7:05 PM
Robin R.
Robin R. - avatar
+ 1
Mo3n I found this great article about how all 3 work together, check it out! https://cloudinary.com/blog/creating_html5_animations So either you do the animations in CSS or in JavaScript, you mainly use the the HTML as the skeleton, what makes sence. Or use all 3, with only HTML you cannot achieve a lot.
13th Apr 2019, 6:35 AM
Robin R.
Robin R. - avatar
+ 1
So finally I wanted to share these beautiful examples😁👌 JavaScript animation https://code.sololearn.com/WX2G8vQ7RH72/?ref=app CSS animation https://code.sololearn.com/W2Cf36SGV7Yd/?ref=app
13th Apr 2019, 6:44 AM
Robin R.
Robin R. - avatar
+ 1
I must admit there still is a lot to learn, so I want to add this as well. Video course about SGV: https://css-tricks.com/lodge/svg/
14th Apr 2019, 5:17 AM
Robin R.
Robin R. - avatar
0
We will have to try and create the same simple animation with all 3 ways and see what is best 😀👌
13th Apr 2019, 6:14 AM
Robin R.
Robin R. - avatar