Loading . . .

Create 3D Cubes Spin into New Year using HTML, CSS & JavaScript

Create a Mental Wellness Partner Website using HTML, CSS & JavaScript

Create a Mesmerizing Marquee Text using HTML & CSS

Create a QR Code Login Template using HTML, CSS & JavaScript

Create a Stunning Matrix Like Rain Effect using HTML, CSS & JavaScript

Create Spectacular Diwali Animation using HTML, CSS & JavaScript

Create a Trippy Loader using HTML & CSS

Create Super Smooth Gradient Animation using HTML, CSS & JavaScript

Create a Whimsical Snow Ball Loader using HTML & CSS

Create a Minimalist Web Developer Portfolio using HTML, CSS & JavaScript

Create a Dizzying Text Spirals using HTML, CSS & JavaScript

Create an Advertisement Brand Website using HTML & CSS

Create a Bouncing Responsive Menu using HTML & CSS

Create Barrel Effect using HTML, CSS & JavaScript

Create Dazzling Neon Loops & Orbs using HTML & CSS

Create Incredible 3d Cube Animation using HTML & CSS

Create Sublime Shiva Animation using HTML & CSS

Create Hypnotic and Colourful Magical Rings using HTML & CSS

Create a 3d Spinning Rings Animation using HTML & CSS

Create a Beautiful Background Animation using HTML & CSS

Create a 7 Segment Neon Digital Clock using HTML, CSS & JavaScript

Create a Satisfying Abacus Clock using HTML, CSS & JavaScript

Create a 3d Loading Text Animation using HTML & CSS

Create a 3d Effect Loading Spinner using HTML & CSS

Create a Fireworks Typing Effect using HTML, CSS & JavaScript

Create Hypnotic Ellipses and Springs using HTML & CSS

Create a Visual Symphony using HTML & CSS

Create a Glowing Blue Tinted Button using HTML & CSS

Create a Modern Team Page using HTML & CSS

Create Animated Rings Login Form using HTML & CSS

Create Bubble Adventure using HTML, CSS & JavaScript

Spectral Spin Circles using HTML & CSS

3D Room 404 Errorverse using HTML & CSS

Team Spotlight using HTML & CSS

Fireflower Fiery Flourish using HTML & CSS

Luxury Tourism Website using HTML & CSS

Company Website Template using HTML & CSS

Nature's Nest Soap using HTML & CSS

Pawfect Wellness using HTML & CSS

Account Creation Hub using HTML & CSS

Accelerate Login Form using HTML & CSS

Valentine Art Love Pixels using HTML, CSS & JavaScript

Animated Valentine's Delight using HTML & CSS

A Tapestry of Eternal Love using HTML & CSS

Gleaming Moments Wedding Invitation using HTML & CSS

Elevate your Login Experience using HTML & CSS

Snowy New Year Celebration using HTML, CSS & JavaScript

Frosty Interactive Christmas Delight using HTML, CSS & JavaScript

Quest Search Page Template using HTML, CSS & JavaScript

Creative Button Artistry using HTML, CSS & JavaScript

Elevate Search Horizon Template using HTML, CSS & JavaScript

Joyful Cake & Balloon Animation using HTML, CSS & JavaScript

Explore Search Page Template using HTML, CSS & JavaScript

Minimal Search Page Template using HTML & CSS

Soothing Gradient Elegance using HTML & CSS

Interactive Profile Card using HTML & CSS

Chic Navbar Navigation using HTML & CSS

Search Page Template using HTML, CSS & JavaScript

Evolving Abstract Art using HTML, CSS & JavaScript

Happy Diya-Lit Diwali using HTML & CSS

Interactive Text Split Effect using HTML & CSS

Artistic Triangle Symphony using HTML & CSS

Button Burst Visual Delight using HTML, CSS & JavaScript

Elegance Animated Typing using HTML, CSS & JavaScript

Journey of Lord Rama using HTML, CSS & JavaScript

Divine Goddesses Gallery using HTML, CSS & JavaScript

Morphing Transition Menu using HTML & CSS

Sticky Smooth Slider Nav using HTML, CSS & JavaScript

Dazzling Neon Typography using HTML & CSS

Glowing Backlight Effect using HTML & CSS

Order Process Steps using HTML & CSS

Text with Gradient Border using HTML & CSS

Login Signup Form Transition using HTML, CSS & JavaScript

A Flower Shower of Blessings using HTML, CSS & JavaScript

Water Waves using HTML, CSS & JavaScript

Flying Origami Bird using HTML & CSS

Glowing Meteor using HTML & CSS

Crafting a World Beyond The Sky using HTML & CSS

Floral Tribute to Flag using HTML, CSS & JavaScript

Tri Hexa Loader using HTML & CSS

Zephyr the Husky using HTML & CSS

Sculpting Shivling Typography using HTML & CSS

Multiple Parallax Effect using HTML, CSS & JavaScript

Scroll Micro Animation using HTML & CSS

Shrink Expand Menu using HTML & CSS

Slideshow Ken Burns Effect using HTML & CSS

Sleek Hamburger Fold Out using HTML & CSS

3d Card using HTML & CSS

Yoga Pose using HTML & CSS

Father's Day Wish Card using HTML, CSS & JavaScript

Flip Opening Modal Button using HTML, CSS & JavaScript

Multiple Scroll Button using HTML & CSS

Glass Keyboard using HTML & CSS

Animated Vertical Tabs using HTML, CSS & JavaScript

Full Page Parallax Scroll Effect using HTML, CSS & JavaScript

Social Buttons using HTML & CSS

Image Accordion using HTML, CSS & JavaScript

Blog Cards using HTML & CSS

Accordions using HTML & CSS

Flowers on Cake using HTML & CSS

Wedding Invitation with Timer using HTML, CSS & JavaScript

Wedding Invitation using HTML & CSS

Couple Name Text Animation using HTML & CSS

Minimal Toggles using HTML & CSS

Revolving Mesmerizing Semi Circles using HTML & CSS

Day Night Toggle using HTML & CSS

Particles Form Neon Hexagons using HTML, CSS & JavaScript

Elastic Text using HTML & CSS

Custom Checkboxes using HTML & CSS

Tic Tac Toe Game using HTML & CSS

3d Text Animation using HTML & CSS

Hamburger Animation using HTML, CSS and JavaScript

Balkan Style Image Gallery using HTML, CSS and JavaScript

Minimalist Loading Page using HTML and CSS

Glitch Clock using HTML, CSS and JavaScript

Digital Clock using HTML, CSS and JavaScript

Round Blob Music Visualizer using HTML, CSS and JavaScript

Cursor Splashing Colours using HTML, CSS and JavaScript

Music Player Visualizer using HTML, CSS and JavaScript

Adjustable Audio Waveform using HTML, CSS and JavaScript

Random Sound Bars using HTML and CSS

Jiggle Wiggle Waveform using HTML and CSS

Heart Eyes using HTML and CSS

Popping Hearts using HTML, CSS and JavaScript

Chaotic Lines Heart using HTML, CSS and JavaScript

Envelope with Letter using HTML & CSS

Moving Particles Animation using HTML, CSS and JavaScript

Interactive Text Masking using HTML, CSS and Javascript

Tri-Colour Flying Balloons using HTML, CSS & JavaScript

Responsive Tabs using HTML & CSS

Mouse Following Box using HTML, CSS & JavaScript

Circular Menu using HTML, CSS & JavaScript

Kite & Cloud Flying Animation using HTML & CSS

Mars Landing using HTML & CSS

Custom Animation Inputs using HTML & CSS

New Year with Snow Falling using HTML, CSS & JavaScript

Skewed 3d Navbar Menu using HTML & CSS

Christmas Animations using HTML & CSS

Sliding Menu using HTML, CSS & JavaScript

Navbar Menu using HTML, CSS & JavaScript

Text Revealing on Hover using HTML & CSS

MacBook revolves in Air using HTML & CSS

Confetti follows the curser using HTML, CSS & JavaScript

Circular Form using HTML, CSS & JavaScript

Rotating Rings Around Text using HTML & CSS

Seconds Counter using HTML, CSS & JavaScript

Baby Animation using HTML & CSS

Simple Loading Page using HTML & CSS

Typewriter using HTML & CSS

Rolling Cube 404 Page using HTML & CSS

Neon Light 404 Page using HTML & CSS

Bookshelf 404 Page using HTML & CSS

Scary 404 Page using HTML & CSS

Diwali Diya & Firework Animation using HTML, CSS & JavaScript

Blinking 404 Page using HTML & CSS

Burger 404 Page using HTML & CSS

Terminal Style 404 Page using HTML & CSS

Image Gallery using HTML, CSS & JavaScript

Gandhi & Shastri Jayanti Wish using HTML & CSS

Happy Navaratri Wish using HTML, CSS & JavaScript

Vertical Image Carousel #4 using HTML, CSS & JavaScript

Vertical Image Carousel #3 using HTML, CSS & JavaScript

Vertical Image Carousel #2 using HTML & CSS

Vertical Image Carousel #1 using HTML & CSS

Horizontal Image Carousel #11 using HTML, CSS & JavaScript

Teachers Day Wish Chat Animation using HTML, CSS & JavaScript

SVG Drawing & BG Animation & using HTML, CSS & JavaScript

Horizontal Image Carousel #10 using HTML, CSS & JavaScript

Horizontal Image Carousel #9 using HTML & CSS

Flag Hosting with Flying Flag using HTML, CSS & JavaScript

Horizontal Image Carousel #8 using HTML & CSS

Greeting follows Mouse Movement using HTML, CSS & JavaScript

Horizontal Image Carousel #7 using HTML & CSS

Horizontal Image Carousel #6 using HTML & CSS

Horizontal Image Carousel #5 using HTML & CSS

Horizontal Image Carousel #4 using HTML & CSS

Horizontal Image Carousel #3 using HTML & CSS

Horizontal Image Carousel #2 using HTML & CSS

Horizontal Image Carousel #1 using HTML, CSS & JavaScript

Image Popup on Hover using HTML & CSS

Infinite Pencil Loader using HTML & CSS

Lappy - A Laptop using HTML & CSS

Eco Theme Button Popup using HTML & CSS

Buttons with Gradient Animation using HTML & CSS

Gradient Buttons Animation on Hover using HTML & CSS

Father's Day Wish using HTML & CSS

Modal Popup on Button Click using HTML & CSS

Button Glow Animation on Hover using HTML & CSS

Button Shines Animation on Hover using HTML & CSS

Jumping Text Animation with Reflection using HTML & CSS

CyberPunk Inspired 404 Page using HTML & CSS

Jumping Letters Animation using HTML & CSS

Holi Wishes using HTML & CSS

Rotating Border Animation using HTML & CSS

Women Typography using HTML & CSS

Sliced Text Animation Using HTML & CSS

Text Shadow Animation using HTML & CSS

Create Fading Hearts Animation using HTML, CSS & JavaScript

Create Tetris Heart Animation using HTML & CSS

Create the Flying Indian Flag Animation using HTML & CSS

Create Makar Sankranti Wishes using HTML, CSS & JavaScript

Create New Year Wishes using HTML & CSS

Create Merry Christmas Wishes using HTML, CSS & JavaScript

Create Ganesh Chaturthi Wishes using HTML & CSS

Create the Indian Flag using HTML & CSS

Create a Password Generator using HTML, CSS & JavaScript

Create a Custom Alert Box using HTML, CSS & JavaScript


Disclaimer: Educational Purposes Only

The content on this website, including videos and code examples, is for educational purposes only. All demonstrations and designs are fictional and created to illustrate coding techniques. Any resemblance to existing websites or brands is purely coincidental.

The creators and administrators of this website do not claim ownership or affiliation with any existing websites or companies. Users are encouraged to use the information responsibly for learning purposes. Liability for any misuse of the content provided is not accepted.

Happy Navaratri Wish using HTML, CSS & JavaScript

Below is the html code for this video.

index.html


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

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Happy Navratri</title>
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <nav class="nav">
        <h1>Happy Navratri to All</h1>
    </nav>

    <div class="loading">
        <h3 class="loading-text">
            May Goddess Durga empowers you with the light of knowledge and truth.
        </h3>
        <img src="Maa Durga.png" alt="Maa Durga" class="loading-img">
    </div>

    <div class="carousel">
        <div class="carousel-inner">
            <div class="slide active">
                <div class="content">
                    Shailputri, is the daughter of the Mountain King Himavat, and is a manifestation and form of the
                    Hindu mother goddess Mahadevi, representing herself as the pure form of goddess Parvati. She is the
                    first Navadurga venerated during the first day of Navratri, and is a reincarnation of Goddess Sati.
                </div>
                <div class="img-container">
                    <img src="Day 1 Maa Shailputri.png" alt="Maa Shailputri" id="img-slide1">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    Brahmacharini means a devoted female student who lives in an Ashrama with her Guru along with other
                    students. She is the second aspect of the Navdurga forms of Mahadevi. The goddess is worshipped on
                    the second day of Navratri. The goddess Brahmacharini wears white clothes, holds a japa mala in her
                    right hand and Kamandala, a water utensil in her left hand.
                </div>
                <div class="img-container">
                    <img src="Day 2 Maa Brahmacharini.png" alt="Maa Brahmacharini" id="img-slide2">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    In Hinduism, Chandraghanta is the third Navadurga aspect of goddess Mahadevi. Her name means "one
                    who has a half-moon shaped like a bell". Her third eye is always opened and she is always ready for
                    war against demons. She is also known as Chandrakhanda, Chandika or Rannchandi. Her worship takes
                    place on the third day of Navaratri.
                </div>
                <div class="img-container">
                    <img src="Day 3 Maa Chandraghanta.png" alt="Maa Chandraghanta" id="img-slide3">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    Kushmanda is a Hindu goddess, credited with creating the world with her divine smile. Her name
                    signals her main role: Ku means "a little", Ushma means "warmth" or "energy" and Anda means "cosmic
                    egg". Kushmanda is worshipped on fourth day of the festival of Navratri and she is believed to
                    improve health and bestow wealth and strength.
                </div>
                <div class="img-container">
                    <img src="Day 4 Maa Kushmanda.png" alt="Maa Kushmanda" id="img-slide4">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    Skandmata is the fifth among the Navadurga forms of Mahadev. Her name comes from Skanda, an
                    alternate name for the war god Kartikeya, and Mata, meaning mother. As one of the Navadurga, the
                    worship of Skandmata takes place on the fifth day of Navaratri. Her abode is in Vishuddha chakra.
                </div>
                <div class="img-container">
                    <img src="Day 5 Skandmata.png" alt="Skandmata" id="img-slide5">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    Katyayani is the sixth aspect of the Navadurga forms of Mahadevi. She is seen as the slayer of the
                    tyrannical demon Mahishasura. She is also the sixth form amongst Navadurga. She may be depicted with
                    four, ten, or eighteen hands.
                </div>
                <div class="img-container">
                    <img src="Day 6 Maa Katyayani.png" alt="Maa Katyayani" id="img-slide6">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    Kalaratri is the seventh of the nine Navadurga forms of the mother goddess Mahadevi. She is first
                    referenced in Devi Mahatmya. Kalaratri is one of the fearsome forms of the Mother Goddess. Kalaratri
                    is traditionally worshipped during the nine nights of Navratri celebrations. The seventh day of
                    Navaratri pooja.
                </div>
                <div class="img-container">
                    <img src="Day 7 Maa Kaalratri.png" alt="Maa Kaalratri" id="img-slide7">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    Mahagauri is the eighth form among the Navadurga aspects of the Hindu mother goddess Mahadevi. She
                    is worshipped on the eighth day of Navaratri. According to Hinduism, Mahagauri has the power to
                    fulfill all the desires of her devotees. The one who worships the goddess, gets relief from all the
                    sufferings in life.
                </div>
                <div class="img-container">
                    <img src="Day 8 Maa Mahagauri.png" alt="Maa Mahagauri" id="img-slide8">
                </div>
            </div>
            <div class="slide">
                <div class="content">
                    Siddhidhatri is the ninth form among the Navadurga aspects of Hindu mother goddess Mahadevi. The
                    meaning of her name is as follows: Siddhi means supernatural power or meditative ability, and Dhatri
                    means giver or awarder. She is worshipped on the ninth day of Navaratri. She fulfills all the divine
                    aspirations.
                </div>
                <div class="img-container">
                    <img src="Day 9 Maa Siddhidatri.png" alt="Maa Siddhidatri" id="img-slide9">
                </div>
            </div>
        </div>

        <nav class="carousel-nav">
            <div class="active"></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </nav>
    </div>

    <script src="https://code.jquery.com/jquery-3.6.1.min.js"
        integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
    <script src="index.js"></script>
</body>

</html>

Below is the css code for this video.

style.css


@import url('https://fonts.googleapis.com/css2?family=Arima+Madurai:wght@900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100%;
    font-family: 'Arima Madurai', cursive;
}

.nav {
    position: fixed;
    top: 5%;
    left: 5%;
    transform: translate(-5%, -5%);
    color: #000000;
    z-index: 9;
    transition: all 2s ease-in-out;
}

.nav h1 {
    font-size: 48px;
    letter-spacing: 2.5px;
    transition: all 2s ease-in-out;
}

.loading {
    position: absolute;
    height: 100vh;
    width: 100%;
    background-color: #fd0600;
    color: #000000;
    text-align: center;
    animation: loadingBgAnim 6s infinite;
}

@keyframes loadingBgAnim {
    0%, 100% {
        background-color: #fd0600;
    }

    5.55%, 94.45% {
        background-color: #ed3a3a;
    }

    11.1%, 88.9% {
        background-color: #4169e1;
    }

    16.65%, 83.35% {
        background-color: #ffe26d;
    }

    22.2%, 77.8% {
        background-color: #69973e;
    }

    27.75%, 72.25% {
        background-color: #808080;
    }

    33.3%, 66.7% {
        background-color: #ffa500;
    }

    38.85%, 61.15% {
        background-color: #ffffff;
    }

    44.4%, 55.6% {
        background-color: #ffc0cb;
    }

    49.95%, 50.05% {
        background-color: #87ceeb;
    }
}

.loading-text {
    position: absolute;
    top: 80%;
    transform: translateY(-80%);
    width: 100%;
    font-size: 32px;
}

.loading-img {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    cursor: none;
}

.carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    display: none;
    background-color: #fd0600;
    background-image: linear-gradient(135deg, #fd0600, #ed3a3a, #4169e1, #ffe26d, #69973e, #808080, #ffa500, #ffffff, #ffc0cb, #87ceeb);
    background-size: 400%;
    overflow: hidden;
    animation: sliderBgAnim 2s linear infinite;
}

@keyframes sliderBgAnim {
    0%, 100% {
        background-position: 0% 100%;
    }

    25%, 75% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 100% 100%;
    }
}

.carousel-inner {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transform: translateZ(0);
    transition-timing-function: cubic-bezier(0.25, 1.5, 0.75, 1);
    transition-duration: 1s;
    transition-delay: 0.75s;
}

.slide {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    background-color: #000000;
    transform: translateZ(0) scale(0.75, 0.75);
    transition-timing-function: cubic-bezier(0.25, 0.5, 0.25, 1.25);
    transition-duration: 0.5s;
}

.slide.active {
    transform: scale(1, 1);
    transition-delay: 2s;
}

.img-container img {
    height: 75%;
    width: 75%;
    margin: auto;
    object-fit: scale-down;
    opacity: 0;
    transition: all 2s ease-in-out;
    transition-delay: 1.5s;
}

.content {
    width: 40%;
    margin: auto 0 auto 2.5%;
    font-size: 18px;
    line-height: 36px;
    transition: all 2s ease-in-out;
    transition-delay: 1s;
    opacity: 0;
    animation: showContentAnim 0.5s forwards 1s;
}

@keyframes showContentAnim {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.img-container {
    width: 60%;
    display: flex;
}

.slide:nth-child(1) {
    background-color: #ed3a3a;
}

.slide:nth-child(2) {
    background-color: #4169e1;
}

.slide:nth-child(3) {
    background-color: #ffe26d;
}

.slide:nth-child(4) {
    background-color: #69973e;
}

.slide:nth-child(5) {
    background-color: #808080;
}

.slide:nth-child(6) {
    background-color: #ffa500;
}

.slide:nth-child(7) {
    background-color: #ffffff;
}

.slide:nth-child(8) {
    background-color: #ffc0cb;
}

.slide:nth-child(9) {
    background-color: #87ceeb;
}

.carousel-nav {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    padding: 20px;
    text-align: center;
}

.carousel-nav div {
    width: 10px;
    height: 10px;
    display: inline-block;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 50%;
    margin: 0 10px;
    z-index: 2;
    cursor: pointer;
    opacity: 0.75;
    transition-duration: 0.25s;
}

.carousel-nav div:hover {
    opacity: 1;
}

.carousel-nav div.active {
    background-color: #ffffff;
    border: 1px dashed #000000;
    transform: scale(1.5);
    opacity: 1;
}

Below is the javascript code for this video.

index.js


$(document).ready(function () {
    var slide = $(".slide");
    var viewWidth = $(window).width();
    var carouselInner = $(".carousel-inner");
    var totalSlides = carouselInner.children().length;
    var navTitle = $(".nav h1");
    var content = $(".content");

    carouselInner.width(viewWidth + totalSlides);

    $(window).resize(function () { viewWidth = $(window).width(); });

    function setWidth() {
        slide.each(function () {
            $(this).width(viewWidth);
            $(this).css("left", viewWidth * $(this).index());
        });
    }

    setWidth();

    $(window).resize(function () { setWidth(); });

    setTimeout(function () {
        navTitle.html("Maa Shailputri").css("color", "#000000");
        $(".carousel").fadeIn(1000);
        $("#img-slide1").css({ "opacity": 1, "cursor": "none" });
    }, 6000);

    function setActive(element) {
        var index = element.index();

        switch (index) {
            case 0:
                navTitle.html("Maa Shailputri").css("color", "#000000");
                content.css("color", "#000000");
                break;
            case 1:
                navTitle.html("Maa Brahmacharini").css("color", "#ffffff");
                content.css("color", "#ffffff");
                break;
            case 2:
                navTitle.html("Maa Chandraghanta").css("color", "#000000");
                content.css("color", "#000000");
                break;
            case 3:
                navTitle.html("Maa Kushmanda").css("color", "#ffffff");
                content.css("color", "#ffffff");
                break;
            case 4:
                navTitle.html("Skand Mata").css("color", "#000000");
                content.css("color", "#000000");
                break;
            case 5:
                navTitle.html("Maa Katyayani").css("color", "#ffffff");
                content.css("color", "#ffffff");
            case 6:
                navTitle.html("Maa Kalaratri").css("color", "#000000");
                content.css("color", "#000000");
                break;
            case 7:
                navTitle.html("Maa Mahagauri").css("color", "#ffffff");
                content.css("color", "#ffffff");
                break;
            case 8:
                navTitle.html("Maa Siddhidhatri").css("color", "#000000");
                content.css("color", "#000000");
                break;
            default:
                break;
        }

        $(".carousel-nav .active").removeClass("active");
        element.addClass("active");
        carouselInner.css("transform", "translateX(-" + index * viewWidth + "px) translateZ(0)");
        $(".carousel-inner .active").removeClass("active");
        $(".carousel-inner .slide").eq(index).addClass("active");

        for (let i = 1; i < 10; i++)
            i == index + 1 ? $("#img-slide" + i).css({ "opacity": 1, "cursor": "none" }) : $("#img-slide" + i).css("opacity", 0);
    }

    $(".carousel-nav div").on("click", function () { setActive($(this)); });
});

Thanks for visiting