- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I would like to know how to replicate the faded effect on the sidebar here: http://srobbin.com/
The sidebar is dimmed, keeping focus on the content area. When you mouse over the sidebar, it brightens to a more readable opacity/color.
The code seems to be:
.ghost { opacity: .4; /* -webkit-transition: opacity .2s linear; */ }
.ghost:hover { opacity: 1; }
My questions are (1) is that the code, (2) how does it work and (3) will it work in all browsers?
@cnwtx Don’t forget -ms-transition
. IE10 will support transitions, and we want to be as future proof as possible.
Is the transition element necessary? If I just wanted the opacity to change, does there need to be a transition involved?
There doesn’t need to be a transition, hence it being commented out in the code you found on srobbin.com. That being said, it is certainly a nicer effect with the transition.
Thanks @joshuanhibbert