May 2022
Intermediate to advanced
104 pages
2h 24m
English
CSS allows you to transform the box of an element in various ways, changing its size, location, rotation, or skew. Tailwind again gives you some reasonable defaults, which when combined with transitions and animation can allow you to build some great effects easily.
Tailwind lets you change the scale of an element with the scale-{percentage} family, where the suffix is the percentage to scale. The default, nonarbitrary, options are 0, 50, 75, 90, 95, 100, 105, 110, 125, and 150, which are, I think, designed to allow for subtle effects like "transition duration-1000 hover:scale-110" (which would make an element get slightly bigger on hover over the course of a second). Add in hover:box-shadow-lg, and it’d seem ...
Read now
Unlock full access