Style transitionProperty Property
Style transitionProperty Property
The transitionProperty property is used to define the name of the CSS property the transition effect is for i.e, the transition effect will start when the specified CSS property changes. It usually occurs when an element is hovered by the user. If transitionDelay is not specified, then its default value is 0.
Syntax:-
Its syntax is:- object.style.transitionProperty OR object.style.transitionProperty = none | all | property | initial | inherit
Return:-
Its return is:- string having transition-property property of an element
Further Explanation:-
Value | Description |
---|---|
none | No property will get transition effect. |
all | All properties will get a transition effect. |
property | A comma-separated list of CSS property names transition effect is for. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |