Challenge: Combine Translation and Skewing
Task
Create an interactive information card about animals. Follow these steps to add dynamic effects on hover:
- Apply a
perspective
of400px
to the parent element, adiv
with the class namecontainer
. - Utilize the
translateZ()
function to bring the card (div
with the class namecard
) closer to the user by50px
. - Introduce a skew along the x-axis by
10deg
to the card description (div
with the class namecard-description-wrapper
).
index.html
index.css
Obrigado pelo seu feedback!