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

Home Forums CSS transition a tabs background

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

    i have a drop down menu that transitions in when the tab is hovered on with opacity going from 0 to 1. nice.
    the tab also changes its color to match the color of the drop down.
    however i can’t transition the tab with opacity because then the tab is missing and the words can’t be seen. i tried using background as the property to transition but that doesn’t work because my colors are css3 gradients and you can’t transition gradients.

    i tried making an after element and having that have an opacity that transitions in, but safari doesn’t allow transitioning on pseudo elements.
    so what have others done in this situation, where you want the tab to match the drop down an transition in also?


    …and i resort to jquery for my weird problems…..


    Have you got a link you can show us?


    its fine… I’m using jquery. i found my own way of making it work without adding an empty div just for transitions…
    well there is an empty div… but its added with jquery which makes it look neater.

    the empty div has an opacity that is transitioned and this way the tab is left alone.
    when I’m done ill show it to you and you can tell me if what i did was stupid or smart….

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