Forums

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?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #175969
    AsteroidMonkey
    Participant

    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

    #175974
    AsteroidMonkey
    Participant

    Thanks Matt!

    Gives me the technique I need to make this thing work!

    Cheers,
    Marc

    #176007
    r00t
    Participant

    Screw jQuery, just use

    #container:hover ~ .trans-1 {
      width: 1000px;
    }
    

    Adding a class on hover would be jQuery’s job though.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.