Hover on “everything but” aka “spotlight” effect: how to make smooth & easy hover transitions?
问题 Chris Coyier once posted an article on CSS-Tricks website on how to achieve this effect: ul:hover li:not(:hover) { opacity: .5; } But what I'm also trying to achieve is smooth and easy hover transitions. I'm just not sure how or where to insert the "smooth hover transition" part of the code. a { color: #cccccc; -webkit-transition: color .5s linear; -moz-transition: color .5s linear; -ms-transition: color .5s linear; -o-transition: color .5s linear; transition: color .5s linear; } a:hover {