css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console