Jssor slider Transitions fade in and fade out the 2 arrow

863 views Asked by At

i have Jssor Slider , i want to make the 2 arrows left and right appear and display with fadein and fadeout - when mouse over the 2 arrow fadein - when mouse out the 2 arrows fadeout

any suggestion

thanks

1

There are 1 answers

0
jssor On

Given there is an arrow navigator skin 'skin\arrow-01.source.html', please add following css code to to this job.

        #slider1_container .jssora01l, #slider1_container .jssora01r {
            opacity: 0;
        }
        #slider1_container:hover .jssora01l, #slider1_container:hover .jssora01r {
            opacity: 1;
        }
        .jssora01l, .jssora01r {
            -webkit-transition: opacity 0.25s linear;
            -moz-transition: opacity 0.25s linear;
            -o-transition: opacity 0.25s linear;
            transition: opacity 0.25s linear;
        }

And finally you will get the following arrow navigator skin,

    <!-- Arrow Navigator Skin Begin -->
    <style>
        /* jssor slider arrow navigator skin 01 css */
        /*
        .jssora01l              (normal)
        .jssora01r              (normal)
        .jssora01l:hover        (normal mouseover)
        .jssora01r:hover        (normal mouseover)
        .jssora01ldn            (mousedown)
        .jssora01rdn            (mousedown)
        */
        .jssora01l, .jssora01r, .jssora01ldn, .jssora01rdn
        {
            position: absolute;
            cursor: pointer;
            display: block;
            background: url(../img/a01.png) no-repeat;
            overflow:hidden;
        }
        .jssora01l { background-position: -8px -38px; }
        .jssora01r { background-position: -68px -38px; }
        .jssora01l:hover { background-position: -128px -38px; }
        .jssora01r:hover { background-position: -188px -38px; }
        .jssora01ldn { background-position: -8px -38px; }
        .jssora01rdn { background-position: -68px -38px; }

        #slider1_container .jssora01l, #slider1_container .jssora01r {
            opacity: 0;
        }
        #slider1_container:hover .jssora01l, #slider1_container:hover .jssora01r {
            opacity: 1;
        }
        .jssora01l, .jssora01r {
            -webkit-transition: opacity 0.25s linear;
            -moz-transition: opacity 0.25s linear;
            -o-transition: opacity 0.25s linear;
            transition: opacity 0.25s linear;
        }
    </style>
    <!-- Arrow Left -->
    <span u="arrowleft" class="jssora01l" style="width: 45px; height: 45px; top: 123px; left: 8px;">
    </span>
    <!-- Arrow Right -->
    <span u="arrowright" class="jssora01r" style="width: 45px; height: 45px; top: 123px; right: 8px">
    </span>
    <!-- Arrow Navigator Skin End -->