T
T
tamtakoe2014-03-25 02:46:19
css
tamtakoe, 2014-03-25 02:46:19

How to speed up spoiler CSS animation?

How to speed up spoiler animation? plnkr.co/edit/XbUKuX?p=preview
And then in a complex design and on weak machines slows down.
Is there a way to do this with transform3D?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-03-25
Protko @Fesor

somehow it’s difficult for you ... ngAnimate for such a task is somehow not really needed.
plnkr.co/edit/YCPeFHT2YD0iMrUVhSFZ?p=preview
In any case, the chrome timeline, unlike your version, now shows values ​​no lower than ~60fps. Still need to try though.
As for the acceleration... well, since you change the height of the block, the entire page will be redrawn, so it won't help much. Only if you set the 3D transformation to zero for the entire block of the parent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question