I have a PhoneGap application that when it opens an HTML page, I want it to move to a specific <div> element. So far, I could do this with this script using jQuery:
<script> $(document).delegate('.ui-page', 'pageshow', function () { var offset = $(this).find('#timeindicatordiv').offset().top; setTimeout(function () { $.mobile.silentScroll(offset); }, 0); }); </script>
It only gives me the opportunity to go directly to a <div> , which looks a little choppy.
Is there any way to give this smooth animation?
source share