Table of Contents

Animated Diwali Greeting card

Share Now :

Title : Animated Diwali Greeting card Using HTML & CSS | W3pupil

Description

Hello W3PUPIL!!! We offer you a dynamic and visually appealing Animated Diwali Greeting card using only HTML & CSS that presents your information at a glance. This Animated Diwali card snippet was created with precision using HTML and CSS.
Celebrate the festival of lights with our stunning Diwali card design. This beautifully crafted HTML and CSS creation shines with intricate patterns and vibrant colours, capturing the essence of the occasion. The warm glow of diyas and the radiance of fireworks come to life on this card, making it a perfect way to convey your festive greetings. Share the joy of Diwali with this elegant card that embodies the spirit of togetherness and illumination. Let your wishes sparkle and shine with our Diwali card design. Your Diwali Greeting card will always be presented in an organized way whether it’s a desktop, a laptop, a tablet, or a smartphone.
So by using this HTML and CSS Diwali card, you’re not just sharing information – you’re demonstrating your dedication to professionalism and contemporary web design. Overall, show off and interact with the world with this innovative and creative Animated Diwali Greeting card snippet.

Let's know how to create a file..

Creating and managing files and folders efficiently is critical for smooth development. Below is a step-by-step guide.

W3pupil’s suggestion is to download and install Visual Studio Code.

  • After successfully completing the download and installation, open Visual Studio Code.
  • Create a new folder on your desktop.
  • Go to the file and then open the folder you created.
  • Then add a file for HTML with the extension “.html” or “.htm”.
  • Also add another file for CSS with the extension “.css”.
  • Now you have an empty HTML file and a CSS file ready for your code.

Let's know how to open a downloaded file..

  • After you download the snippet file from W3pupil, you will get a zip file.
  • After unzipping, you can open the file in Visual Studio Code.
  • Now you have the HTML file and the CSS file to work with.
  • Take your time to fully understand the functionality of the code before making the changes you want in the Animated Diwali Greeting card snippet.

Let's take a look at a code snippet created by W3pupil team using HTML and CSS.

HTML SOURCE CODE LOGO

HTML Source Code

HTML (Hypertext Markup Language) is a standard markup language for creating web pages, defining their structure and content using a system of tags and elements. (index.html)

  <!--Hello Future Developer Thanks for Using w3pupil.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>W3pupil 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.w3pupil.com/">W3pupil</a></div>
</div>
<!--Check our website Regularly For New Snippets Post-->  
CSS SOURCE CODE IMAGE

CSS Source Code

CSS (Cascading Style Sheet) enhances website aesthetics and layout, applying styles and design elements to create a visually appealing and responsive user interface. (style.css)

  /** 
Hello Future Developer Thanks for Using w3pupil.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;
}       

Note :

  • We have coded CSS in a separate file and linked to the HTML file for creating Animated Diwali Greeting card snippet.

Download :

Share and Support W3pupil.com

Conclusion :

To change the code, you can download the source code files of the snippet. To improve your HTML and CSS skills, you can try rebuilding other creative HTML and CSS snippets available on W3pupil. If you have any technical questions, feel free to contact W3pupil. As soon as possible, we will do our best to resolve your request.

Like Reaction
Like Reaction
Like Reaction
Like Reaction
Like Reaction

LivePreview :