Loading tutorials
Intermediate · Mid: 13 chapters · 34 min read. States assumed prerequisites
Start readingbg-indigo-600 and px-4. You should also know what a CSS transition is: a rule that animates a property from one value to another instead of switching instantly.transition works. By the end you should be able to pick the right transition-* utility for an element and explain why a transition did or did not run.duration-* and delay-* utilities, which control how long a transition runs and when it starts.transition-* and duration-* utilities from the earlier chapters and can read a basic hover: variahover: variant and transition-* utilities from earlier chapters. Here you will add movement to a transition: growing, turning and shifting an element when the user points at it.hover: and focus:. It also assumes you can use transition-*, duration-* and the transform utilities from the earlier chapters.@keyframes differ from transitions. A transition moves between two states when something changes. A keyframe animation runs on its own, without a trigger, and can repeat.hover:, and the built-in animate-* utilities from the previous chapter. You will learn how to honor the operating system setting that asks sites to reduce motion.hover:, and the basic transition-* utilities. It covers what to do when the built-in duration and easing scales don't contain the value you need.animate-* utilities, how a CSS @keyframes rule works, and where your Tailwind setup lives. That is the CSS file with @import "tailwindcss" in v4, or tailwind.config.js in v3.transition-* and duration-* utilities, and basic CSS transforms. It explains which properties are cheap to animate, which are costly, and how to choose between them.hover:, and the basics of CSS transitions. It uses Tailwind v4 features.hover: and focus-visible:, and the basics of CSS transitions and keyframes. It also assumes you have read the earlier chapters on transitions,