Skip to content

Latest commit

 

History

History

90-A heart shape with animation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
author handle source date likes retweets replies
Ajay Yadav 🎯
@ATechAjay
February 14, 2022 3:03 PM
33
14
14

ATechAjay Ajay Yadav 🎯 (@ATechAjay) - February 14, 2022 3:03 PM

💚 Day 9️⃣0️⃣ / 1️⃣0️⃣0️⃣ Master in CSS Design series!

💥 Today we going to design a heat shape with animation.

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

💡 Step by step!

#100DaysOfCode
#CodeNewbie
#webdev

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

→ First of all, we have to draw a square. pic.twitter.com/FOvReWQDWn

3_1493175515884421122

→ Inside that container again we have to draw a square using "before "pseudo-elements.

3_1493175599258816512

→ Again, inside that container again we have to draw a square using "after "pseudo-elements.

3_1493175707643842569

→ Then, we have to rotate the entire container using rotate function.

  • rotate to 45 degrees!

  • set the border-radius to 50% in both pseudo-elements.

  • Also, we have to set the same background color in all boxes. pic.twitter.com/tg9e6Ki56J

3_1493175769979580417

👀 Now for the animation!!

3_1493175271838855170

→ We have to scale our container using the scale function. pic.twitter.com/14mCAMdMOB

3_1493176204996018178

→ codepen link:

codepen.io/atechajay/pen/…

Thread link