Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

transition behaviour in css

/* Apply to 1 property */
/* property name | duration */
transition: margin-right 4s;

/* property name | duration | delay */
transition: margin-right 4s 1s;

/* property name | duration | easing function */
transition: margin-right 4s ease-in-out;

/* property name | duration | easing function | delay */
transition: margin-right 4s ease-in-out 1s;

/* Apply to 2 properties */
transition: margin-right 4s, color 1s;

/* Apply to all changed properties */
transition: all 0.5s ease-out;

/* Global values */
transition: inherit;
transition: initial;
transition: revert;
transition: revert-layer;
transition: unset;
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #transition #behaviour #css
ADD COMMENT
Topic
Name
3+7 =