The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] DIV that triggers a CSS Transition on another DIV?
Hi,
I’m looking to set a DIV to trigger a completely different DIV’s CSS Transition on hover. If you view the link below, what I’m looking to do is activate the red square’s transition effect when hovering over the blue square.
http://jsfiddle.net/26bvC/
Any ideas?
Cheers, Marc
Thanks Matt!
Gives me the technique I need to make this thing work!
Screw jQuery, just use
#container:hover ~ .trans-1 { width: 1000px; }
Adding a class on hover would be jQuery’s job though.