• Hi, can your plugin auto scroll down to specific class? I want to use it to auto scroll to the first <span class=”estimat”>Estimat</span> on the mentioned page. Can your plugin do that? Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author malihu

    (@malihu)

    Hi,

    No the plugin works strictly on id attributes. You’d need to create an element like:

    <span id="estimat">Estimat</span>
    or you could simply add a a target id (via plugin shortcode or block) right before your span element.

    • This reply was modified 4 years, 11 months ago by malihu.
    Thread Starter luciche

    (@luciche)

    I have the #plecari id and want to scroll to <span class=”estimat”>Decolat</span>

    View post on imgur.com

    Can I use something like this?

    `$(function(){
    var container = $(‘div#plecari’),
    scrollTo = $(‘span.estimat’);

    container.scrollTop(
    scrollTo.offset().top – container.offset().top + container.scrollTop() – 30
    );
    });`

    Thank you

    Plugin Author malihu

    (@malihu)

    I can’t really say, as the code you posted is out of plugin’s scope/functionality.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autoscroll to class’ is closed to new replies.