[annotator-dev] Using scroll top on page with annotator loaded

Apurva Jalit apurva.jalit at gmail.com
Mon Apr 20 06:13:03 UTC 2015


Hello all,
I am trying to use scroll top on a web page. It works perfectly fine when
annotator is not initialised on the page, but when I initialise annotator
on the body of the page, the jquery scroll top does not work. Is there any
know reason behind this?

Scroll top I am using:
$('html, body').animate({
        scrollTop: $(element).offset().top
    }, 1000);

Where element is a html element handler.

Thanks,
Apurva Jalit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20150420/0d40cb86/attachment-0003.html>


More information about the annotator-dev mailing list