Recall & Review
beginner
What does the
scale transform do in Tailwind CSS?The
scale transform changes the size of an element by making it bigger or smaller without affecting its layout space.Click to reveal answer
beginner
How do you rotate an element 45 degrees using Tailwind CSS?
Use the class
rotate-45 to rotate an element 45 degrees clockwise.Click to reveal answer
beginner
What is the purpose of the <code>translate-x-4</code> class in Tailwind?It moves the element 1 rem (usually 16px) to the right along the horizontal axis.
Click to reveal answer
intermediate
How can you combine scale, rotate, and translate transforms in Tailwind CSS?
You add multiple transform classes like
scale-110 rotate-90 translate-x-2 on the same element to apply all transforms together.Click to reveal answer
intermediate
Why should you use
transform in Tailwind when applying transforms?Using
transform tells the browser to use the graphics card for smoother and faster animations and transformations.Click to reveal answer
Which Tailwind class scales an element to 125% of its original size?
✗ Incorrect
The class
scale-125 increases the element size to 125%.What does the class
rotate-180 do?✗ Incorrect
rotate-180 rotates the element 180 degrees clockwise.Which class moves an element 0.5 rem to the left?
✗ Incorrect
-translate-x-2 moves the element 0.5 rem to the left.How do you enable GPU acceleration for transforms in Tailwind?
✗ Incorrect
The
transform class enables GPU acceleration.Which of these is NOT a valid Tailwind transform class?
✗ Incorrect
flip-vertical is not a valid Tailwind transform class.Explain how to use Tailwind CSS classes to scale, rotate, and translate an element. Include examples.
Think about how you can change size, angle, and position with simple class names.
You got /4 concepts.
Describe why using
transform can improve performance when animating transforms in Tailwind CSS.Consider how computers handle graphics differently with GPU vs CPU.
You got /4 concepts.