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

    (@malihu)

    When you click a link to scroll-to a page section, the plugin adds the class mPS2id-clicked to that link. When page scrolls to that section (either by click, mouse-wheel etc.), the plugin adds the class mPS2id-highlight to the link and the class mPS2id-target to the section.

    You can use the .mPS2id-target in your css to style the “highlighted” section. To highlight anything for a specific amount of time you’ll need to add a custom script manually.

    First of all, amazing plugin Malihu! Thank you!

    I’m looking to highlight one of my already styled li-tags. is this possible? Styling the highlight doesn’t quite cut it as it adds to the overall size.

    Put simple. I want to style menu-main-menu > li and if I style your highlight I get the li > a too.

    Sincerely,
    Sebastian

    Plugin Author malihu

    (@malihu)

    Hi Sebastian,

    It’s not possible for the plugin to highlight any parent elements automatically. Page scroll to id highlights only the actual links as the script cannot possibly know the structure and markup of a menu.

    Okay thank you!

    Sebastian

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Highlight a div or block element’ is closed to new replies.