//Original version spelt accordion accordian?
/*jQuery time*/
$(document).ready(function() {
$("#accordion i").click(function() {
//slide up all the link lists
$("#accordion ul ul").slideUp(200);
$("#accordion i").removeClass("down");
//slide down the link list below the h3 clicked - only if its closed
if (
!$(this)
.next()
.is(":visible")
) {
$(this)
.next()
.slideDown(200);
$(this).addClass("down");
}
});
});
and then this:
.rotate{
-moz-transition: all 2s linear;
-webkit-transition: all 2s linear;
transition: all 2s linear;
}
.down .rotate{
-ms-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
Is a <time> denoting the amount of time the transition from the old value of a property to the new value should take. A time of 0s indicates that no transition will happen, that is the switch between the two states will be instantaneous. A negative value for the time renders the declaration invalid.