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.
Trying to make a better contribution here :)
Lea Verou and Chris Coyier came up with solutions to make the :target technique more usable:
:target
* Change URL hash without page jump
* Hash Tag Links That Dona€?t Headbutt The Browser Window
@PIES an example: http://jsfiddle.net/macfam/MEzAU/
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