Skip to content

Latest commit

 

History

History

32-Hoverable card

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
author handle source date likes retweets replies
Ajay Yadav 🎯
@ATechAjay
December 18, 2021 8:24 AM
8
11
1

ATechAjay Ajay Yadav 🎯 (@ATechAjay) - December 18, 2021 8:24 AM

💚Day 3️⃣2️⃣ / 1️⃣ 0️⃣0️⃣ days of Master in CSS Design series!

💥Today we going to design a hoverable card (similar to day 31).

❓What's the main logic behind it with the codepen link?

#100DaysOfCode
#webdevelopment

Let me explain!👇🧵 pic.twitter.com/E3B1GdkXpH

→ We have used 4 properties for this design.

1️⃣ white border around the image.

→ So, a white border around the image can be created using padding property.

pic.twitter.com/xN8qjO1Yai

3_1472055515282739200

2️⃣ Now, when we hover over the card the image will be rotating as well as scaling.

pic.twitter.com/bCuslAiIlM

3_1472056349953429505

3️⃣ Initially, We have to hide the text content.

→ You have to set the opacity to 0.

pic.twitter.com/a06eZ7amxB

3_1472057396696535041

4️⃣ Finally, when we hover over the container, then the text content should be displayed.

pic.twitter.com/wsXSnuUJtC

3_1472058483251892230

→ codepen link:

codepen.io/atechajay/pen/…

Thread link