Challenge: Apply Scaling & Rotation
Task
Create an engaging online shop card for electronics, where each card includes an image, name, and price. The task is to enhance the visual appeal by incorporating the following animations:
- Scaling Image: Utilize the
increaseImageSize
keyframes rule to add a scaling effect to the image element, making it 20% larger. The final result should bescale(1.2)
. - Rotating Price: Implement the
rotatePrice
keyframes rule to add a rotation effect to the price element, completing one full circle. The final result should berotate(360deg)
.
Use the predefined keyframes rules.
index.html
index.css
Thanks for your feedback!