Image Slider creation with Zooming effect without using jQuery Plugins or JavaScript.

 

Image Slider Creation With ZOOOMING Effect.






                                                                                 Hey guy's we bring another awesome web program that will show you HOW to create Image Slider with ZOOMING effect. In this program we have use transform Scale property of CSS so that is why we were able to get such amazing output without using any jQuery plugins or any code of JavaScript. So we hope you will like such amazing and awesome web program . 






PROGRAM SOURCE CODE :)







<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width,initial-scale=1.0">

    <title>Image Slider with Zooming Effect</title>


<!---------------------------- CSS Part ---------------------------------->

<style type="text/css">
    
    *{
        margin:0;
        padding0;
        box-sizingborder-box;
    }

    .main-div{
        width100vw;
        height100vh;
        background-color#000001;
        displayflex;
        justify-contentcenter;
        align-itemscenter;
    }

    .center-div{
        width80%;
        height80%;
        positionrelative;
        overflowhidden;
    }

    .center-div img{
        width100%;
        height:100%;
    }

    .d{
        positionabsolute;
        width100%;
        height100%;
        transition: transform .2s ease-in-out;
    }

    label{
        width3rem;
        height3rem;
        background-color#000;
        color#fff;
        border-radius50%;
        text-aligncenter;
        font-size2.5rem;
        font-weight900;
        cursorpointer;
        positionabsolute;
        top50%;
        transformtranslateY(-50%);
    }

    #l1{
        left3%;
    }

    #l2{
        right3%;
    }

    label:hover{
        colorred;
        background-coloryellow;
    }

    input{
        displaynone;
    }

    #i1 img,#i2 img,#i3 img{
        z-index-1;
    }

    #a:checked~#i1,#b:checked~#i2,#c:checked~#i3{
        z-index100;
        animation: z .7s linear;
    }
    @keyframes z{
        0%{
            transform:scale(2);
            opacity0;
        }
        50%{
            transform:scale(2);
            opacity1;
        }
        100%{
            transformscale(1);
            opacity1;
        }
    }




</style>


</head>
<body>
    <div class="main-div">

        <div class="center-div">

            <input type="radio" name="r" id="a">

            <input type="radio" name="r" id="b">

            <input type="radio" name="r" id="c">


            <div id="i1" class="d">

                <label for="c" id="l1">&lt;</label>

                <label for="b" id="l2">&gt;</label>

                <img src="c-sharp.png">

            </div>


            <div id="i2" class="d">

                <label for="a" id="l1">&lt;</label>

                <label for="c" id="l2">&gt;</label>

                <img src="cpp.jpg">

            </div>


            <div id="i3" class="d">

                <label for="b" id="l1">&lt;</label>

                <label for="a" id="l2">&gt;</label>

                <img src="c.png">

            </div>

        </div>

    </div>


</body>
</html>







OUTPUT :-







( NOTE : - While executing program you have to replace links of images , audio's  or video's in this program by your links. So take care of it ! )