Blog preview card with wavy effect
Hello Guys! In this blog, I'm going to explain to you how to make a blog card with a wavy effect using CSS. You can use this card in a blog website to preview articles. This will be a step-by-step guide including HTML and CSS. Let's get started 🚀.
Let's cover the HTML part
HTML is a markup language. We use HTML to make the skeleton of a website.
Now let's import the font awesome CDN in our HTML head tag. fontawesome is a library that is used for icons in a website.
Now let's import the fonts using Google Fonts API. Below is the code for Poppins Font. Paste the below code in head tag.
Now let's develop the skeleton of our card. We have a div with classname 'card', img tag, SVG tag for the wavy effect, if you want to make this wavy effect SVG you can make it using getwaves.io. Next, we have a description div which consists paragraph description and author profile details.
Here is the Final HTML Code
Output Till Now
Let's understand CSS Part
In the below CSS code,
- We declare a * selectors to set the font Poppins that we have imported in our head tag.
- Next we declare a body selector which consists of styles for dark mode and aligns all elements in the body to the center.