Create HTML/CSS Animation Slider

Explore the power of our HTML/CSS animation slider for dynamic website content. Elevate user engagement with our slider animation expertise.

Create HTML/CSS Animation Slider

Check Youtube video to see animation



HTML CODE

<div class="container">
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>

CSS CODE

ul {
        list-style-typenone;
        max-width1200px;
        margin0 auto;
    }

    ul li {
        positionrelative;
        floatleft;
        width10%;
        height600px;
        opacity0.6;
        transitionall 0.3s ease-in-out;
    }

    ul li::before {
        height100%;
        content'';
        displayblock;
        width0;
        transitionall 0.3s ease-in-out;
    }

    ul li:hover,
    ul li:first-child~li:last-child {
        opacity1;
        width50%;
        transitionall 0.3s ease-in-out;
    }


ul li:hover~li:last-child {
  width10%;
  opacity0.4;
}

ul li:nth-child(1) {
   backgroundurl(Gallet_clamshell_600x600_movement.jpg
        top center no-repeat;
}

ul li:nth-child(2) {
   backgroundurl(https://picsum.photos/id/237/600/600
        top right no-repeat;
}

ul li:nth-child(3) {
   backgroundurl(https://picsum.photos/600/600
        top center no-repeat;
}

 ul li:nth-child(4) {
   backgroundurl(https://picsum.photos/seed/picsum/600/600
        top center no-repeat;
 }

ul li:nth-child(5) {
   backgroundurl(https://picsum.photos/600/600/?blur=1
        top center no-repeat;
}

ul li:nth-child(6) {
   backgroundurl(https://picsum.photos/600/600?grayscale
        top center no-repeat;
}

Previous Post Next Post