I have this weird issue happening only in safari ios:
As you can see from the gif above (click on it to see it properly), the div is not moving unless I click on it in developer tools . I'm not changing any code and the div starts functioning correctly.
Anyone have any ideas why this is happening on ios (not happening on desktop safari)?
I'm using transition: margin-left 500ms ease;
on body and then change margin of the div (I keep the vendor prefix -webkit-).
Thanks!
I've experienced a similar issue and it appears to be due to how Safari deals with jQuery animations.
A workaround rather than a fix, but if you use jQuery.css() rather than jQuery.animation(), the issue shouldn't occur. You can then use css animations instead. You could probably use css classes to set the margin-left and just add/remove a class using jQuery on click too.
Cheers
Matt
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.