I am using:
$('selector').animate({marginLeft:'-500px'},600);
... to slide a div to the left. Based on my current HTML/CSS, applying a negative margin works and I want to avoid having to rebuild my HTML/CSS to do it another way. My code works great on all browsers, but it's really choppy on a brand new iPad mini. Is there a better way achieve this effect specific to Safari on iOS?
Try out css transitions instead. http://www.w3schools.com/css3/css3_transitions.asp
Should be possible with minor changes :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.