cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="cont">

  <ul class="Header">
    <li><a href="https://www.facebook.com/bilal.alshame1994">bilal Alshame</a></li>
  </ul>

  <!--Start Slider-->

  <div class="slider">
    <div class="con-img"></div>
    <!--Start Arrow-->
    <span class="arrowleft"><img src="http://www.free-icons-download.net/images/arrow-left-icon-8958.png" /></span>
    <span class="arrowright"><img src="http://www.free-icons-download.net/images/arrow-right-icon-8959.png" /></span>
    <!--End Arrow-->
    <!--Start Overlay-->
    <div class="over"></div>
    <!--End Overlay-->
  </div>

  <!--end Slider-->

  <!--Start Navbar Img-->

  <div class="images">
    <ul>
      <li class="active" >
        <img src="http://www.blog.inwebinfo.com/wp-content/uploads/2015/04/img-3-650x400.jpg" />
      </li>
      <li >
        <img src="http://tampawebdesigner.net/wp-content/uploads/2014/11/web-design-options.png"/>
      </li>
      <li>
        <img src="http://webdschool.com/images/thumbs/webdesign-courses.jpg"/>
      </li>
      <li >
        <img src="https://www.zenithinnovations.co.uk/wp-content/uploads/2016/02/Web-Design-3.jpg"/>
      </li >
      <li>
        <img src="http://webcandywebsites.com/wp-content/uploads/2015/12/creative-website-design.jpg"/>
      </li>
      <li>
        <img src="https://www.softtrix.com/wp-content/uploads/2014/12/Web-Design-and-Development-Banner1.jpg"/>
      </li>
    </ul>
  </div>
  <!--End Navbar Img-->
</div>        
            
          
!
            
              *{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cont {
    width: 100%;
    height: 99.3vh;
    perspective: 600px;
}

.cont .Header li {
    position: fixed;
    z-index: 9999;
    font-weight: bold;
    font-size: 30px;
    top: 38%;
}
.cont .Header li a {
    text-decoration: none;
    color: #FFF;
}
/*Start Slider*/
.cont .slider {
    position: relative;
    height: 75%;
    z-index: 0;
}

.cont .slider .con-img {
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-image: url(http://www.blog.inwebinfo.com/wp-content/uploads/2015/04/img-3-650x400.jpg);
    -webkit-transition: all 1.5s ease-in-out;
    -moz-transition: all 1.5s ease-in-out;
    transition: all 1.5s ease-in-out;
    transform-origin: center;
}
.cont .slider span {
    position: absolute;
    top: 50%;
    z-index: 4;
    cursor: pointer;
}

.cont .slider span.arrowleft {
    left: 0;
}

.cont .slider span.arrowright {
    right: 0;
}

.cont .slider span img {
    background: rgba(247, 247, 247, 0.38);
    border-radius: 50%;
}

.cont .slider .over {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.36);
    z-index: 1;
}
/*End Slider*/

/*Start navbar Img*/
.cont .images {
    height: 25%;
}
.cont .images ul {
    display: flex;
    justify-content: center;
    height: 100%;
}
.cont .images ul li {
    flex-basis: 200px;
    transition: all .5s ease;
    cursor: pointer;
}

.cont .images ul li.active {
    flex-grow: 1;
    box-shadow: 1px 2px 1px 1px #333;
    border: 1px solid #333;
    
}
.cont .images ul li img {
    display: inline-block;
    height: 100%;
    width: 100%;
}

/*End navbar Img*/

.animationClass {
    -webkit-animation: fade 1s ease-in-out 1 ;
    -moz-animation: fade 1s ease-in-out 1 ;
    animation: fade 1s ease-in-out 1 ;
    transform-style: preserve-3d;
}
@keyframes fade {
    0%{
        transform: translateZ(0px);
    }
    25%{
        transform: translateZ(100px);
    }
    50%{
        transform: translateZ(50px);
    }
    75%{
        transform: translateZ(100px);
    }
    100%{
        transform: translateZ(0px);
    }
}
            
          
!
            
              /*global $*/
$(function () {
    
    'use strict';
    
    /*Start MyFunction*/
    
    function triggerAnimation() {
    
        // Trigger Animation
        
        $('.cont .slider .con-img').addClass('animationClass');
        
        $('.cont .slider .con-img').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function () {

            $('.cont .slider .con-img').removeClass('animationClass');

        });
        
    }
    
    // Global Varibal has Set Intarval
    var autoSlid;
    // Function Auto Change Images every 3 Seconds
    function autochange() {
        
        autoSlid = setInterval(function () {
            
            $('.cont .images ul li.active').each(function () {

                if ($(this).is(':last-of-type')) {

                    $(this).removeClass('active').siblings(':first-of-type').addClass('active');
                    // Change Background Image to Images Inside div Images
                    $('.cont .slider .con-img').css('background-image', 'url(' + $('.cont .images ul li.active img').attr('src') + ')');

                } else {

                    $(this).removeClass('active').next('li').addClass('active');

                    $('.cont .slider .con-img').css('background-image', 'url(' + $('.cont .images ul li.active img').attr('src') + ')');

                }
            });

        }, 3000);
    }
    
    /*End MyFunction*/
    
    
    // trigger Auto Slide Img
    autochange();
    
    // Trigger KeyFrames
    triggerAnimation();
    
    // Center Link
    $('.cont .Header li').css({
        
        left: ($('.cont').width() - $('.cont .Header li').width()) / 2
        
    });
    // Center Link On Resize Page
    $(window).resize(function () {
       
        $('.cont .Header li').css({

            left: ($('.cont').width() - $('.cont .Header li').width()) / 2

        });
        
    });
    
    /* Start On click Arrow*/
    
    // On click Arrow Left
    $('.cont .slider span.arrowleft').click(function () {
        
        //Stop Auto Slider
        clearInterval(autoSlid);
       
        if ($('.cont .images ul li.active').is(':first-of-type')) {
            
            $('.cont .images ul li.active').removeClass('active')
                .siblings(':last-of-type').addClass('active');
            
            $('.cont .slider .con-img').css('background-image', 'url(' + $('.cont .images ul li.active img').attr('src') + ')');

        } else {

            $('.cont .images ul li.active').removeClass('active').prev().addClass('active');

            $('.cont .slider .con-img').css('background-image', 'url(' + $('.cont .images ul li.active img').attr('src') + ')');
            
        }
        
        //Triger Auto Slider
        autochange();
        
        // Trigger KeyFrames
        triggerAnimation();
                    
    });
    // On Click Arrow Right
    $('.cont .slider span.arrowright').click(function () {
        // Stop Auto Slide
        clearInterval(autoSlid);
        
        if ($('.cont .images ul li.active').is(':last-of-type')) {
            
            $('.cont .images ul li.active').removeClass('active')
                .siblings(':first-of-type').addClass('active');

            $('.cont .slider .con-img').css('background-image', 'url(' + $('.cont .images ul li.active img').attr('src') + ')');
            
            
        } else {

            $('.cont .images ul li.active').removeClass('active').next().addClass('active');

            $('.cont .slider .con-img').css('background-image', 'url(' + $('.cont .images ul li.active img').attr('src') + ')');
            
            // Trigger Animation
            $('.cont .slider .con-img').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function () {

                $('.cont .slider .con-img').removeClass('ani');

            });
          
        }
        
        // Trigger KeyFrames
        triggerAnimation();
        
        //Triger Auto Slider
        autochange();
                    
    });
    
    /* End On click Arrow*/
    
    /* Start Onclick Div Images */
    
    // On click images add class Active and Show in background
    $('.cont .images ul li').click(function () {
        //Stop Auto Slider
        clearInterval(autoSlid);
        
        $(this).addClass('active').siblings().removeClass('active');

        $('.cont .slider .con-img').css('background-image', 'url(' + $('.cont .images ul li.active img').attr('src') + ')');
        //Triger Auto Slider
        autochange();
        
        // Trigger KeyFrames
        triggerAnimation();
            
    });
    
    /* End Onclick Div Images */
});
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console