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 trialSpencer Renfro
Courses Plus Student 11,133 PointsThe animation in the teachers note: the hash in the browser's URL does not change when clicking the eat button.
In the video explanation of the pseudo class :target, when the buttons are clicked for the different columns the url changes, however this is not the case in the animation link provided in the teachers notes. Why is that?
1 Answer
Steven Parker
231,268 PointsThat example uses codepen, which simulates the environment within a frame on the page. Your browser's URL always points to the codepen page, even when the contents of the frame change.
If you copy the code to a workspace and use that instead of codepen, you'll see the behavior you are expecting.