Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Damian Perez
Courses Plus Student 7,269 PointsHow can i create a transition when linking to a element?
Look at the example i made:
You see transition from anchor to blue happen in an instant, how can i make a nice transition so it doesn't move that fast????
1 Answer
Ben Falk
3,167 PointsYou'll need to add some sort of animation, rather than using the default anchor functionality. Check out this code snippet: http://css-tricks.com/snippets/jquery/smooth-scrolling/, or just do a Google search for "jquery animate to anchor". I imagine this could be done without jQuery as well, if you aren't already using jQuery in your project.
Damian Perez
Courses Plus Student 7,269 PointsDamian Perez
Courses Plus Student 7,269 Pointsholy sh*t, that works! thanks