Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performance of CSS3 accordion vs Javascript (Hardware accelaretad) accordion [closed]

Tags:

javascript

css

Which version of accordion is most smooth, fastest and without lags?

Is better pure CSS3 or something like this javascript accelerated ?

Fiddle

Which have best performance?

Thanks for any opinions!

like image 983
Makromat Avatar asked Nov 11 '22 13:11

Makromat


1 Answers

CSS transitions are always faster, as they do not need to run a cycle to process the JavaScript.

Most specifically, CSS transitions changing scale, opacity and rotation are fastest because they do not trigger a page-wide redraw.

like image 79
Code Whisperer Avatar answered Nov 15 '22 04:11

Code Whisperer