Welcome to the Treehouse Community
Looking to learn something new?
Link to section within page
I understand the concept of linking an anchor tag to another section on the same page with the (#example) code, but idk how semantic that is. Is there a better way?
Also, when you click on such anchor tag it just quickly sends you to that place (ID) in the page without a subtle and nice transition. Does anyone know of good open source code to make that transition swiftly??
thank you in advance for your help!
Richard Lewis5,101 Points
you could use jquery to achieve this (scrollTo) as an example, a css transition maybe?
Matt Campbell9,767 Points
It's gotta be jQuery.
You can link the anchor you click on with the JQuery selector and then send it to the area of the site you want to go to with a slide transition set to slow or something.
thanks for the help guys! much appreciated