Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
cst199220556y@fullslack You mean CSS? Nope, it's an animation; not a static rule. We're doing this kind of statements in a loop.
-
I think that it wasn't really meant to do any heavy animating. I would look at HTML5 canvas.
-
ftyross1696yClasses with car keyframes may be an answer. Js based animations are typically very expensive as they touch the dom which causes repaints and potential reflows.
-
cst199220556y@devTea Transitions are already used but they're kinda 'mated' with the JS code; just the JS makes it jumpy; just the CSS doesn't produce the same effect. It's not exactly clear what it's doing, but it seems to need both parts of it.
Related Rants
DOM manipulation in React apps such as
div.style.bottom = '20px;'
is a bitch to optimize.
Anyone got any tips?
rant
dom
react
optimization