EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

transition-duration property

Gets or sets one or more values that specify the durations of transitions on a set of corresponding object properties identified in the transition-property property.

This property is read/write.

CSS Transitions Module Level 3, Section 2.2

Syntax

transition-duration: <time> [ , <time> ] *

Property values

One or more transition times, separated by commas.

time

Floating-point number, followed by a time units designator ("ms" or "s"). For more information about the supported time units, see CSS Values and Units Reference.

CSS information

Applies Toall elements, :before and :after pseudo elements
Mediainteractive
Inheritedno
Initial Value0

Standards information

Remarks

Transitions respect Cascading Style Sheets (CSS) box model constraints such as minWidth.

For example, if an element is declared with a minWidth value of "50px" then a transition to a width of "25px" is not valid. In a case such as this, the transition runs for the specified duration from the start value until a valid maximum or minimum end value, as appropriate.

To learn more about CSS transitions in a Windows Store app using JavaScript, see How to bring your webpage to life with CSS transforms, transitions, and animations.

See also

a
abbr
address
b
bdo
blockQuote
br
button
cite
code
CSSStyleDeclaration
currentStyle
dd
del
dfn
div
dl
dt
em
fieldSet
form
i
img
input
ins
kbd
label
li
map
object
ol
p
pre
q
samp
script
select
small
span
strong
style
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
tr
ul
var
How to bring your webpage to life with CSS transforms, transitions, and animations

 

 

Afficher:
© 2014 Microsoft. Tous droits réservés.