Search
 
SCRIPT & CODE EXAMPLE
 

HTML

multi item slider html css

<div class="slides slowFade">
        <div class="slide">
            <img src="01.jpg" alt="img"/>
        </div>
        <div class="slide">
            <img src="02.jpg" alt="img"/>
        </div>
        <div class="slide">
            <img src="03.jpg" alt="img"/>
        </div>
        <div class="slide">
            <img src="04.jpg" alt="img"/>
        </div>
    </div>
    
    <style>
    * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.slowFade {
    display: flex;
    align-items: flex-start;
    background: #fff;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
.slowFade .slide img {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    height: auto;
    background: #000;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    opacity: 0;
    transform: scale(1.5) rotate(15deg);
    -webkit-animation: slowFade 32s infinite;
            animation: slowFade 32s infinite;
}
.slowFade .slide:nth-child(3) img {
    -webkit-animation-delay: 8s;
            animation-delay: 8s;
}
.slowFade .slide:nth-child(2) img {
    -webkit-animation-delay: 16s;
            animation-delay: 16s;
}
.slowFade .slide:nth-child(1) img {
    -webkit-animation-delay: 24s;
            animation-delay: 24s;
}
@keyframes slowFade {
    25% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
    40% {
        opacity: 0;
    }
}

@-webkit-keyframes slowFade {
    25% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
    40% {
        opacity: 0;
    }
}
</style>
Comment

PREVIOUS NEXT
Code Example
Html :: how to italicize text in html 
Html :: email validator hmtl 
Html :: html table fixed first column 
Html :: html4 
Html :: python download html as string 
Html :: html with emoji 
Html :: divs in html 
Html :: mark html element 
Html :: include in the price html woocommerce 
Html :: load a html page inside another 
Html :: online html editor 
Html :: vue bind 
Html :: expandable and collapsible html tables 
Html :: put the text in the end of navbar collapse 
Html :: wordress audio volume 
Html :: html bilder einfügen 
Html :: cara membuat persegi di html 
Html :: npm package private 
Html :: simple mask money 
Html :: Write html into file using Java dynamically 
Html :: get post java html 
Html :: assign multiple attributes by destructuring props react 
Html :: change htmlwebpackplugin.options.title 
Html :: html how to change button text 
Html :: html canvas input add 
Html :: symfony twig form value 
Html :: enable provider plugin cache in terraform 
Html :: mark tag in html 
Html :: random paragraph in html 
Html :: . and # in html 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =