Blog Card with wavy effect using html and css – Coding Torque

Share your love

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 🚀.

Before we start, here are some more JavaScript Games you might like to create:

1. Snake Game using JavaScript

2. 2D Bouncing Ball Game using JavaScript

3. Rock Paper Scissor Game using JavaScript

4. Tic Tac Toe Game using JavaScript

5. Whack a Mole Game using JavaScript

I would recommend you don’t just copy and paste the code, just look at the code and type by understanding it.


HTML Code 

<!doctype html>
<html lang="en">

    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Font Awesome Icons  -->
    <link rel="stylesheet" href=""
        crossorigin="anonymous" />

    <!-- Google Fonts  -->
    <link rel="preconnect" href="">
    <link rel="preconnect" href="" crossorigin>
    <link href="" rel="stylesheet">

    <title>Article Reading Card with Waves Effect using CSS - @code.scientist x @codingtorque</title>

    <div class="card">
        <img src="../imgs/desk.jpg" alt="Article">
        <svg xmlns="" viewBox="0 0 1440 320">
            <path> fill="#ffffff" fill-opacity="1"
        <div class="description">
            <h4> class="title">5 Productivity Tips to stay more productive in a day!</h4>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus, voluptatibus eos. Quae, dolores
                commodi? Impedit commodi voluptates</p>
            <div class="profile">
                <img src="../imgs/profile-pic1.jpg" alt="profile">
                <p class="author">
                    <span> class="authorName">Piyush Patil</span>
                    <span> class="date">12 June 2022</span>



CSS Code 

Create a file style.css and paste the code below.

* {
    font-family: 'Poppins', sans-serif;

body {
    background-color: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10rem;

.card {
    border-radius: 10px;
    height: 25rem;
    width: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;

.card svg {
    position: absolute;
    left: 0;
    top: 120px;

.card img {
    width: 100%;

.description {
    padding: 15px;
    background: white;
    color: black;

.title {
    font-size: 1rem;
    margin: 0;

.description p {
    font-size: 12px;
    margin: 5px 0;
    color: #94a3b8;

.profile {
    display: flex;
    align-items: center;

.profile img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    margin-right: 5px;

.author {
    display: flex;
    flex-direction: column;

.authorName {
    color: black;
    font-weight: bold;

.date {
    font-size: 10px;

Output Till Now

Written by: Piyush Patil
If you have any doubts or any project ideas feel free to Contact Us
Hope you find this post helpful💖
Share your love