Animated Diwali Greeting card Using HTML and CSS





























Hello Developers, We are proud to present to you a dynamic and aesthetically pleasing Animated Diwali greeting card using only HTML and CSS that presents your information to you at a glance. This Animated Diwali Card Snippet has been designed with precision using HTML & CSS. Celebrate Diwali with our beautiful Diwali Card design. This beautifully crafted HTML & CSS creation shines with intricate patterns and vibrant colours that capture the essence of Diwali. The warm glow of Diyas & the radiance of Fireworks comes to life on this Diwali Card. Let your wishes shine and shine with this Diwali card. Whether it’s a desktop, laptop, tablet, or a smartphone, your Diwali greetings will always be displayed in an organized manner. By using this HTML & CSS Diwali Card, you are not only sharing information but also demonstrating your dedication to professionalism & contemporary web design. Show off & interact with the world using this innovative and creative Diwali Greeting card. Note: We have saved the CSS in a different file and linked it to the HTML file to make an Animated Diwali greeting card snippet.

How to make Animated Diwali Greeting card Using HTML and CSS.[Source Code]

To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html> <head> <title>Diwali Greeting Card UI design - learningrobo</title> <meta name="description" content="Diwali Greeting Card UI design - learningrobo"> <meta name="author" content="learningrobo.com"> <meta name="keywords" content="Diwali Greeting card,responsive,learningrobo.com,html & css projects,project"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" type=image/x-icon href="#"> <link rel="stylesheet" href="style.css"> <meta charset="UTF-8"> <script src="https://kit.fontawesome.com/5d72166fb5.js" crossorigin="anonymous"></script> </head> <body> <!--Hello Future Developer Thanks for Using learningrobo.com, Share & Support us--> <div class="container"> <div class="diwali-card"> <div class="left-child"> <img src="https://cdn.pixabay.com/photo/2021/11/05/05/52/diwali-6770363_1280.png"> <h6>2023</h6> <h3>learningrobo Wishing you</h3> <h1>Happy<br>Diwali</h1> </div> <div class="right-child"> <img src="https://cdn.pixabay.com/photo/2021/12/21/00/34/mandala-6884232_1280.png"> </div> </div> <div class="credit">Made with <span>❤ </span>by <a href="https://www.learningrobo.com/">learningrobo</a></div> </div> <!--Check our website Regularly For New Snippets Post--> </body> </html>
CSS provides style to an HTML page. To make the page attractive create a CSS file with the name style.css and remember that you have to make a file with a .css extension.


/** 
Hello Future Developer Thanks for Using learningrobo.com, 
Check our website Regularly For New Snippets Post.

Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Open+Sans&display=swap');
*{
    box-sizing: border-box;
}
body{
    margin:0px;
    font-family: 'Open Sans', sans-serif;
}
.container{
    height:100vh;
    width: 100%;
    display:flex;
    flex-direction: column;
    background-color:#000;
    align-items: center;
    justify-content: center;
}
.diwali-card{
    height:75vh;
    width:55vw;
    border-radius:10px;
    display:flex;
    background-image: linear-gradient(-225deg, #5271C4 0%, #B19FFF 48%, #ECA1FE 100%);
}
.left-child{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    height:75vh;
    padding:10px;
    width:calc(55vw / 2 + 3vw);
    background-color:#292929;
    border-radius:10px 0px 0px 10px;
    row-gap:30px;
}
.left-child img{
    height:150px;
    width:120px;
}
.left-child h6{
    margin:5px;
    font-size:20px;
    color:#ddd;
}
.left-child h3{
    margin:5px;
    font-size:20px;
    color:#B19FFF;
}
.left-child h1{
    margin:5px;
    font-size:80px;
    color:#ddd;
    font-family: 'Kaushan Script', cursive;
}
.right-child{
    height:75vh;
    width:calc(55vw / 2 - 3vw);
    overflow: hidden;
    padding:10px;
}
@keyframes rotating{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}
.right-child img{
    height:100%;
    margin-left:-92%;
    animation: rotating 15s linear infinite;
    filter: drop-shadow(#121212 0px 0px 5px);
}
@media screen and (max-width:1024px){
    .container{
        height:100vh;
        padding:30px 0px;
    }
    .diwali-card{
        flex-direction:column;
        width:90%;
        height:fit-content;
    }
    .left-child{
        width:100%;
        order:2;
        height:fit-content;
        border-radius:10px;
    }
    .right-child{
        width:100%;
        height:fit-content;
        order:1;
    }
    .right-child img{
        margin:-53% 0px 0px 0px;
        width:100%;
        height:fit-content;
    }
}
@media screen and (max-width:630px){
    .container{
        height:fit-content;
        padding:30px 0px;
    }
    .diwali-card{
        flex-direction:column;
        width:98%;
        height:fit-content;
    }
    .left-child{
        width:100%;
        order:2;
        height:fit-content;
        border-radius:10px;
    }
    .right-child{
        width:100%;
        height:fit-content;
        order:1;
    }
    .right-child img{
        margin:-53% 0px 0px 0px;
        width:100%;
        height:fit-content;
    }
}
.credit a{
    text-decoration: none;
    color: #ddd;
    font-weight: 800;
} 
.credit{
    color: #ddd;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
    color:tomato;
    font-size:20px;
}     
We hope you would like this Animated Diwali Greeting card Using HTML and CSS .

Thank you for reading our blog. If you face any problem in Creating a Animated Diwali Greeting card Using HTML and CSS ., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.

Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome