• Resolved danielgm

    (@danielgm)


    Willing to roll my own, would like to scroll some place higher than the trigger on expansion. Can it be done? Perhaps putting specially named anchor somewhere?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author twinpictures

    (@twinpictures)

    step 1. add the find-me class to your trigger (be sure to give your trigger a unique ID

    setp 2. add the element where you want to scroll to like so:
    <a id="find-the_trigger_id" name="auto" data-offset="-70"> </a>
    you can use data-offset of this element to tweak up or down.
    hope that helps.

    Thread Starter danielgm

    (@danielgm)

    This does not work for me. The page always scrolls to the trigger and not to the link you described in step 2.

    My trigger:

    <span class="collapseomatic find-me arrowright" id="title11" rel="test-highlander" style="text-decoration: none;">Expand</span>

    My scroll target:

    <a id="find-title11" name="auto" data-offset="-70"></a>

    My collapsed content:

    <p class="collapseomatic_content" id="target-title11" style="">Content</p>

    Where is the mistake? Can the scroll target be anywhere on the page? Because mine is not right above the trigger like in your demo. What is name=”auto” for? What does name=”7070″ do (in your demo, that trigger strangely jumps to the very top of the page)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to scroll above trigger on expansion’ is closed to new replies.