Answer the question
In order to leave comments, you need to log in
There is an anchor link. How to change its color when it is on the anchor block?
Good afternoon, ladies and gentlemen, maybe someone knows the answer and can help:
There is an anchor link.
How to change its color when the user is on the anchor block and/or clicked on the link and went to this block?
Is there a pure CSS option?
No need for JS, thanks, I found something similar on the net.
PS
Found about :target, but it changes the anchor block itself, not the anchor link.
Answer the question
In order to leave comments, you need to log in
this fullPage
plugin will help
$(document).ready(function(){
$("#fullpage").fullpage({
menu: '#menu'
//anchors:['Якорь 1', 'Якорь 2', 'Якорь 3']
});
});
when the user is on an anchor block and/or clicked on a link and navigated to that block?since this is not the state of the element, but the position in the scroll, then without zhs most likely nothing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question