Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Javascript HTML5/CSS
I have a quick question. I am animating multiple divs and would like them to be hardware accelerated. If I just animate the top property of the element, but add translate3d(0,0,0) to its inline style, will this hardware accelerate it?
If possible, a link to your answer would be great.
Posted 12-Nov-12 0:02am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It depends of browser. Depends of environment. Depends of setting of the browser etc.
It is HTML you cannot know nor cannot have any influence for that.
HTML should be non-native, markup language. You designing contents of documents (HTML), it's view to user, appereance (CSS), and sometimes behavior (JS).
Everything else is platform specific and you cannot rely on it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 289
1 DamithSL 225
2 OriginalGriff 175
3 Peter Leow 150
4 Afzaal Ahmad Zeeshan 95
0 OriginalGriff 7,380
1 DamithSL 5,359
2 Sergey Alexandrovich Kryukov 4,944
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514

Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 17 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100