StyloorgangDuration Eiendom _
Voorbeeld
Versnel die oorgangseffek:
document.getElementById("myDIV").style.transitionDuration = "1s";
Definisie en gebruik
Die transitionDuration-eienskap stel of gee terug hoeveel sekondes (s) of millisekondes (ms) 'n oorgangseffek neem om te voltooi.
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
transitionDuration | 26.0 | 10.0 | 16.0 | 6.1 3.1 WebkitTransitionDuration |
12.1 |
Sintaksis
Gee die transitionDuration-eienskap terug:
object.style.transitionDuration
Stel die transitionDuration-eienskap:
object.style.transitionDuration = "time|initial|inherit"
Eiendomswaardes
Value | Description |
---|---|
time | Specifies how many seconds or milliseconds a transition effect takes to complete. Default value is 0, meaning there will be no effect |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Tegniese besonderhede
Standaard waarde: | 0 |
---|---|
Terugkeerwaarde: | 'n String, wat die oorgangsduur-eienskap van 'n element voorstel |
CSS weergawe | CSS3 |
Verwante bladsye
CSS verwysing: oorgang-duur eiendom
❮ Stylvoorwerp