I see that you're going for a fade-in/fade-out. With transition, it would only fade out once the target is not the hash anymore.

Thierry Koblentz said on September 25, 2011

Trying to make a better contribution here :)

Lea Verou and Chris Coyier came up with solutions to make the :target technique more usable:

* Change URL hash without page jump

* Hash Tag Links That Dona€?t Headbutt The Browser Window

John MacAdam said on September 26, 2011

@PIES an example: http://jsfiddle.net/macfam/MEzAU/

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.