How do I make the anchor link work? #337
Answered
by
idiotWu
GeorgeStudio96
asked this question in
Q&A
-
Environment
how to make anchor links? they cannot scroll inside a 100vh container. I need to link to #id sections on my site. How do I make the anchor link work? |
Beta Was this translation helpful? Give feedback.
Answered by
idiotWu
Nov 15, 2020
Replies: 2 comments
-
I found a solution using Jquery + the ScrollTo method, however I don't like the fact that I need to create a lot of functions to make 2 or more of my links work. Tell me how to do it correctly and reduce the code? A demonstration of the code. |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #128 and https://jsbin.com/jequfuq/edit |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
idiotWu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #128 and https://jsbin.com/jequfuq/edit