Featured Post

Ganesh Chaturthi Special: Ganesha Image with Rotating Chakra Structures | HTML & CSS Animation

Ganesh Chaturthi Special: Ganesha Image with Rotating Chakra Structures | HTML & CSS Animation 🌟🕉️

In this project, we create a stunning web design that features a Ganesha image with a chakra-like structure as the background, using HTML and CSS. The chakra structures rotate both clockwise and counterclockwise, giving a mesmerizing effect, while shadow effects are applied to enhance the visual appeal. This design is perfect for celebrating Ganesh Chaturthi and showcasing beautiful animations with minimal effort.

 VIDEO TUTORIAL

 

Key Features of This Design

  1. Ganesha Image with Indigo Background:

    • The main focal point of the design is a beautiful image of Lord Ganesha set against an indigo-colored background.
    • The indigo background provides a calming and divine feel, highlighting the spiritual significance of Lord Ganesha.
  2. Chakra-Like Rotating Structures:

    • Behind the Ganesha image, we add three chakra-like structures, each rotating in opposite directions: clockwise and counterclockwise. These rotating effects will be created using CSS animations.
    • Each chakra will have a smooth and continuous rotation, enhancing the aesthetic appeal of the design and adding an element of dynamism.
  3. Shadow Effects with Different Values:

    • Each chakra structure will also have a unique shadow effect, using different shadow values to create depth and a 3D illusion.
    • The shadow effects will vary subtly, giving each chakra a distinct appearance and making the design more engaging.
  4. Smooth Animations with CSS:

    • The entire design is built using CSS animations to achieve smooth and seamless transitions for the rotating chakras.
    • These animations will be applied using @keyframes and customized for the different elements to ensure perfect timing and synchronization.
  5. Responsive Design:

    • The layout will be fully responsive, ensuring that the Ganesha image, chakras, and animations adjust perfectly on all screen sizes, from mobile to desktop.
    • The CSS will be carefully crafted to maintain the elegance of the design across different devices, ensuring a user-friendly experience.

 HTML

 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ganesh Background Animation</title>

    <!-- externa; stylesheet -->
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <div class="img1">
            <img src="https://res.cloudinary.com/freecodez/image/upload/v1694949729/images/s7sweladttaja5ueyexx.webp" alt="">
        </div>

        <div class="img2">
            <img src="https://res.cloudinary.com/freecodez/image/upload/v1694949729/images/s7sweladttaja5ueyexx.webp" alt="">
        </div>

        <div class="img3">
            <img src="https://res.cloudinary.com/freecodez/image/upload/v1694949748/images/njofz6tzqdj5qsbb7kek.webp" alt="">
        </div>

        <div class="img4">
            <img src="https://res.cloudinary.com/freecodez/image/upload/v1694949769/images/b5rchwczwlfjkmiv4wbe.webp" alt="">
        </div>
    </div>
</body>
</html>

CSS

 *
{
    margin: 0;
    padding: 0;
}

body
{
    background: linear-gradient(45deg, #38438b, #944b94, #d75a88, #ff7e71, #ffb25f, #ffeb68);
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

img
{
    width: 100%;
}

.container
{
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img2, .img3, .img4
{
    position: absolute;
    top: 0;
}

.img1
{
    animation: animate 8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 81, 153));
}

.img2
{
    animation: animate2 10s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 64, 172));
    padding: 5%;
}

.img3
{
    animation: animate 15s linear infinite;
    filter: drop-shadow(0 0 5px rgba(200, 117, 117));
    padding: 10%;
}

@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}

@keyframes animate2
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(-360deg);
    }
}

How to Use This Design

  • Step-by-Step Tutorial: The project guide will walk you through how to set up the HTML structure, style the elements with CSS, and apply the animations for the rotating chakras and shadow effects.
  • Customization: After completing the design, feel free to experiment with different chakra colors, shadow intensities, and animation speeds to suit your personal or branding style.
  • Perfect for Festive Celebrations: This design can be used for Ganesh Chaturthi or other festive websites to create an elegant, spiritual, and interactive experience.

Conclusion

This Ganesha-inspired project is a perfect example of combining art and code. By creating a beautiful design with an indigo background, rotating chakra structures, and shadow effects, we bring the divine presence of Lord Ganesha to life on the web. The CSS animations make the design interactive and visually appealing, ensuring a memorable user experience.

If you enjoyed this tutorial, don’t forget to subscribe to Logusivam Academy for more exciting projects and tutorials. Please like, share, and leave a comment to let us know how you’ve used this design. Happy Ganesh Chaturthi! 🌟🕉️ 

Comments

Popular Post

Hacker Login Form Using HTML CSS

Introduction to RESTful API

Krishna Janmasthami effect using HTML CSS