css - Avoiding absolute positioned elements from jumping on animations in chrome for mac -


i build website : http://rcmm.minnie.mico.dk/

and on front page have slideshow (bad ux - know). if click 1 of small square icons in bottom right corner slider animate.

this works great, except in chrome mac. every time slider animates, elements positioned absolute tiny pixel-jump. animations on slider using transform: translate() animation. js swapping classes - no actualt animating - thats handled css.

does know why is, , if there possible fix this?

any appreciated.

simply add -webkit-backface-visibility: hidden; <body> , jumping should stop.

any time have minor glitches when using css transforms, backface-visibility: hidden straighten things out. typically has how browser handle hardware acceleration.

from css3 animations: hiccups , bugs you'll want avoid:

the reason behind phenomenon unclear, fix pretty simple. adding -webkit-backface-visibility: hidden; rule css should prevent problem. apply container of element, so:

.container { -webkit-backface-visibility: hidden; }

it boils down hardware acceleration problem - using property kicks acceleration gear. use things -webkit-perspective: 1000; or other 3d properties.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -