i'm developing , website , need scroll anchor. needs animated, decided use jquery that. tried this:
code:
function gotobyscroll(id){ $('html,body').animate({scrolltop: $("#"+id).offset().top},'slow'); }
it works on desktop. on mobile safari first goes top of page, scrolls anchor want scroll to. what's trick make work on mobile safari?
in advanced
i created script called gentle anchors bit back. don't know how works on mobile safari, worth shot.
don't use jquery can't if there's issues syntax. have seen others trying though, such one, hard how work on mobile safari.
Forums Special Interests Web Design and Development
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment