Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery slideUp flashing on iOS

Tags:

jquery

slideup

I have a collapsing nav menu made up of unordered lists that uses .slideUp() and .slideDown() to hide and display sub menus. This works great on all desktop browsers. I am having a problem on iOS (ipad and iphone) in which the sub nav will slide up and then flash the child text on top of the other elements before it disappears. You can see an example of this at www.sweetrush.com.

Any idea on what might be causing this or a way to fix it?

like image 727
micahmills Avatar asked Nov 26 '25 19:11

micahmills


1 Answers

Have you tried hardware acceleration? It usually solves flickering for me on iOS devices.

-webkit-transform: translate3d(0,0,0)

For iOS 6 you probably have to add:

-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
like image 104
Haje Avatar answered Nov 28 '25 16:11

Haje



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!