The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Transition problem

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #41533

    The code is here: . So the problem is that after i remove the cursor from the hovered dropdown, the background disapears before the text. I know it’s because of the transitions on the a element, but i kind of want to keep those. So, how do i get the background to transition like the text? Or at least how to make the text vanish at the same time as the background?


    .main-menu ul > li ul {
    background: #FA5858;
    visibility: hidden;
    position: absolute;
    left: 0px;
    -webkit-transition: all 0.3s ease-in;
    -moz-transition: all 0.3s ease-in;
    -o-transition: all 0.3s ease-in;
    transition: all 0.3s ease-in;

    edited it here for you.

    Danny D.


    Thanks Daniel.

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