+ 11

Animation Without CSS is possible??

Does it is possible that we can animate such elements visuals. Without JS?

5th Nov 2018, 11:27 AM
Raj Ghosh
Raj Ghosh - avatar
17 Answers
+ 19
Raj Ghosh Doing animation with JS is possible but many disadvantages. 1. If browser disables JS, then no animation. 2. Css animations are optimized by browsers, so they ll always run faster than its JS counterpart. Its a trick in making web games : if you have simple repeating animation then best to outsource it to css(to reduce frame redraw). 3. Adding simple animation with Css(@keyframes) is so much easier than doing it with JS. Now doing CSS with JS might be another topic and its getting popular due to React css loaders, that use JS for css https://gomakethings.com/whats-wrong-with-css-in-js/ The down side of css animation is you can create only simple repetitive animations, you cant do conditional complex animations, for that we would use, canvas(2d), webGL(3d) in JS.
5th Nov 2018, 3:22 PM
Morpheus
Morpheus - avatar
+ 13
11th Nov 2018, 7:21 PM
Serhat İbin
Serhat İbin - avatar
+ 7
Raj Ghosh I don't think so .
5th Nov 2018, 12:58 PM
Bono
Bono - avatar
+ 6
Calviղ good point .
5th Nov 2018, 12:18 PM
Bono
Bono - avatar
+ 6
if you're not hoping to use css,js for animations..then you have to settle with the depreciated <marquee> tag
5th Nov 2018, 12:25 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 5
Without CSS, without JS...then what the animation you want to run with?
5th Nov 2018, 12:13 PM
Calviղ
Calviղ - avatar
+ 5
Raj Ghosh and Toni Isotalo You can do animation with JS(Canvas), you didnt need css to do that
5th Nov 2018, 12:49 PM
Jingga Sona
Jingga Sona - avatar
+ 4
My point is that, if we do animation with js it will be visually good and dynamic. But can we do the same without JS? That's my point of view..
5th Nov 2018, 1:16 PM
Raj Ghosh
Raj Ghosh - avatar
+ 4
Victor Ambutsi Khamati Lol marquee is removed on html5 but people still use it I don't know which part of real projects does marquee is used for.
7th Nov 2018, 1:42 AM
Email Not Activated
+ 3
Morpheus That's what i'm looking for, thank you.
5th Nov 2018, 3:37 PM
Raj Ghosh
Raj Ghosh - avatar
+ 2
No CSS and JS animation? 😆 You can't animate with HTML. 😆
10th Nov 2018, 9:34 AM
ᴰᴼᴹᴵᴺᴼ
ᴰᴼᴹᴵᴺᴼ - avatar
+ 1
I think its possible but turning my thought into reality seems hard,ha ha all in all why don't you try to canvas the HTML? The <marquee> element also brings some type of animation
6th Nov 2018, 12:22 PM
Victor Ambutsi Khamati
Victor Ambutsi Khamati - avatar