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!
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
Spencer RenfroCourses Plus Student 11,133 Points
The 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?
Steven Parker228,039 Points
That 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.