Skip to content

Trigger css :target or add active class on scroll to header #2065

@dt192

Description

@dt192

Feature request

Trigger css :target or add active class on scroll to header

What problem does this feature solve?

Currently when you click on a link, the page scrolls to header, however on short pages or targets near the end of the page they can't scroll, so it provides no help in finding the section.

If :target was triggered or a class added to the active anchor target I would be able to add a marker next to the section flash the header flashing to draw attention etc.

https://www.w3schools.com/cssref/tryit.php?filename=trycss3_target

What does the proposed API look like?

idk

How should this be implemented in your opinion?

idk

Are you willing to work on this yourself?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy