• Resolved Nijen

    (@nijen)


    Can’t get spy-offset to work. Am I mistaken to assume that it would scroll down another 20px with this shortcode?
    [toc content=”.entry-content” headers=”h2,h3″ spy-offset=”20″]

    Thanks
    Nijen

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

    (@jamesckemp)

    Hey, Spy offset is the offset used for adding an active class to the link when that heading is scrolled into view. There’s not actually a setting for what you want.

    Could maybe be done if the headings have padding or margin top?

    maybe this will help:

    .entry-content h3 {margin-top: -96px;}
    .entry-content h3:before 
    { content: ''; display: block; position: relative; width: 0; height: 96px;}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Spy-offset’ is closed to new replies.