jQuery How to get in to a specific div without any animation when viewing the page in mobile device -
i need this.
i have mobile lander polaroid image on header. wanted automatically view 5step form under polaroid image when view on mobile without animation or something.
please let me know how can achieve idea. thank you
since u tagged jquery, here's example follow:
https://www.abeautifulsite.net/smoothly-scroll-to-an-element-without-a-jquery-plugin-2
pretty straight forward use, that's provided elements not hidden , within same page
$('html, body').animate({ scrolltop: $("#step5-form").offset().top }, 1000);
edit
without animation, use scrolltop
api jquery
$('html, body').scrolltop($("#step5-form").offset().top);
Comments
Post a Comment