Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.


what are transitions

properties can change over time

the browser has the ability to perform those changes smoothly

of course this applies to some properties only, e.g. lengths or colors:


transition example 1

Loading...

how transitions work


the transition property


most common timing functions


transition example 2

Loading...

do not overuse !

as a piece of advice

also notice that this starts to have to do with responsiveness


transition example 3 (advanced)

transitions apply to all changes, not only triggered by a user

here we use JavaScript (studied later) to alter a <div>'s size
with e.g. growing.style.width = '200px'

Loading...

animations (optional)

to go further:


see also