Understanding CSS3 Transitions

by Dan Cederholm

24 Reader Comments

Back to the Article
  1. Strange, i’m trying your example of the background transition and it doesn’t seem to work on Firefox 3.6.13 or Opera 11, only works on Chrome.

    a.foo {
      padding: 5px 10px;
      background: #9c3;
      -webkit-transition-property: background;
      -webkit-transition-duration: 0.5s;
      -webkit-transition-timing-function: ease;
      -moz-transition: background 0.3s ease;
      -o-transition: background 0.3s ease;
      transition: background 0.3s ease;
    }

    Copy & paste the code below to embed this comment.
  2. Agreed.
    Using Firefox 3.6.3. I am also unable to get the transition to work. Fails on IE v8.0 too.
    I made the duration 20 seconds in the hope of seeing some difference and -color to each of the attributes but still no go!?

    a.foo
    {
      padding: 5px 10px;
      background-color: #9c3;
      -webkit-transition: background-color 20.0s ease;
      -moz-transition: background-color 20.0s ease;
      -o-transition: background-color 20.0s ease;
      transition: background-color 20.0s ease;
    }

    Copy & paste the code below to embed this comment.
  3. Yay! Just installed mozilla v4.0 and that fixed the problem. When will IE catch up?

    Copy & paste the code below to embed this comment.
  4. Very easy to learn and understand… Thanks Dan…

    Copy & paste the code below to embed this comment.