transition animation css code example
Example 1: css transition all
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
Example 2: transition transform
.section:hover {
transform: translateX(0px) translateY(75px);
}
.section {
transition: transform 500ms ease-in-out 25ms;
}
Example 3: css transform transition
.selector {
transition: transform 1s;
}
Example 4: css transition
selector {
transition: property duration timing-function delay|initial|inherit;
}
Example 5: learn css animations transform
Read this comprehensive article about CSS animation transform property.
It also has many useful examples that help you in best way.
https://medium.com/swlh/learn-css-transform-animation-zero-to-hero-6a2a643bd56b
Example 6: transition syntax css
transition: property duration transition-timing-function delay;