In this blog, I am creating creative menu effects using the transition-delay property using HTML & CSS. So, Let’s create an index.html & style.css below-




In this blog, I am creating creative menu effects using the transition-delay property using HTML & CSS. So, Let’s create an index.html & style.css below-
Transitions is used to change property values from one value to another, over a given duration. The transition effect will start when the specified CSS property changes value.
Note: If the duration part is not specified, the transition will have no effect, because the default value is 0.
This property is used to specify the name of the CSS property the transition effect is for (the transition effect will start when the specified CSS property changes). Always specify the transition-duration property, otherwise the duration is 0, and the transition will have no effect.
We can set this property to none, all and property.
Ex: –
div { transition-property: all; }
none – No property will get a transition effect
all – All properties will get a transition effect. This is Default value.
property – Defines a comma separated list of CSS property names the transition effect is for
This property is used to specify how many seconds or milliseconds a transition effect takes to complete. We can set this property to time in the form of seconds or milliseconds. The default value of this property is 0s which means there will be no effect.
Ex:-
div { transition-duration: 2s; }
div { transition-duration: 1000ms; }
This property is used to specify the speed curve of the transition effect. This property allows a transition effect to change speed over its duration. We can set this property to ease, linear, ease-in, ease-out, ease-in-out, step-start, step-end, steps(int, start or end), cubic-bezier(n, n, n, n).
Ex:-
div { transition-timing-function: ease-in; }
This property is used to specify when the transition effect will start. We can set this property to time in the form of seconds or milliseconds.
Ex:-
div { transition-delay: 2s; }
div { transition-delay: 1000ms; }