docsify icon indicating copy to clipboard operation
docsify copied to clipboard

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

Open dt192 opened this issue 2 years ago • 6 comments

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

dt192 avatar May 10 '23 14:05 dt192

can someone assign me this task i wants to work upon it

MrDev706 avatar May 12 '23 02:05 MrDev706

can someone assign me this task i wants to work upon it

Hi @MrDev706 , PR welcome.

Koooooo-7 avatar May 18 '23 06:05 Koooooo-7

Hi @dt192 , I think maybe put some custom style/script in the index.html would be a workaround.

Koooooo-7 avatar May 18 '23 06:05 Koooooo-7

can someone assign me this task i wants to work upon it

aryanq123 avatar May 20 '23 12:05 aryanq123

can someone assign me this task i wants to work upon it

Hi @aryanq123 , PR welcome.

Koooooo-7 avatar May 29 '23 06:05 Koooooo-7

Willing to work on it

anniepauline avatar Sep 06 '23 14:09 anniepauline