Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.4.1/slick.css"/>
<!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.4.1/slick-theme.css"/>-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.4.1/slick.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>

<div class="mouseOver parent parent2">
  <div class="follower"></div>
  <div class="sliderParent">
    <div class="slider" id="featured-content">
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#1]The greatest breakthroughs in gaming history of the past 25 years</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>Best game reboots</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#3]The greatest breakthroughs</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#4]The greatest breakthroughs</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#5]The greatest breakthroughs in gaming</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#6]The greatest breakthroughs in gaming history of</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#7]The greatest breakthroughs in gaming history of the past</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#8]The greatest breakthroughs in gaming history of the past 25 years</h2>
            </a>
         </div>
         <div>
            <a href="#">
               <figure class="thumbnail ratio-16by9"><img src="http://dummyimage.com/464x16:9/3498db/fff.gif" alt=""></figure>
               <h2>[#9]The greatest breakthroughs in gaming history of the past 25 years</h2>
            </a>
         </div>
        </div>
      </div>
  </div>
              
            
!

CSS

              
                /* Slick slider */
.sliderParent {
  background-color: #e2e2e2;
  padding: 120px ;
}

.slider {
  background-color: red;
}
.slick-slide img { transition: all 0.3s ease; width: 100%; }
.slick-slide:hover img { opacity: 0.5; height: 125%; left: -12.5%; }
/* Slick slider: Arrows */
.slick-prev, .slick-next { font: normal normal normal 22px/0 FontAwesome; top: 0; width: 1.5em; height: 1.5em; margin: 0; background-color: rgba(0,0,0,0.2); color: transparent; transition: all 0.3s ease; }
.slick-slider:hover .slick-prev, .slick-slider:hover .slick-next { }
.slick-prev:hover, .slick-prev:focus, .slick-next:hover, .slick-next:focus { background-color: rgba(0,0,0,0.8) }
.slick-prev:hover:before, .slick-prev:focus:before, .slick-next:hover:before, .slick-next:focus:before { }
.slick-prev.slick-disabled:before, .slick-next.slick-disabled:before { }
.slick-prev:before, .slick-next:before { font-family: inherit; font-size: inherit; display: inline-block; opacity: 1; color: rgba(255,255,255,0.8); }
.slick-prev { left: 0 }
.slick-prev:before { content: '\f053' }
.slick-next { right: 0 }
.slick-next:before { content: '\f054' }
.slick-dots li button:hover, .slick-dots li button:focus { }
.slick-dots li button:hover:before, .slick-dots li button:focus:before { }
.slick-dots li button:before { }
.slick-dots li.slick-active button:before { }
/* Slick slider: Content */
.slick-slide { }
.slick-slide a { position: relative; display: block; text-decoration: none; }
.slick-slide h2 { font-size: 22px; font-weight: bold; margin: 0 auto; background-color: #fff; position: relative; overflow: hidden; color: #333; padding: 0.5em; width: 80%; margin-top: -7%; }
.slick-slide .thumbnail:after { content: ''; position: absolute; width: 1px; height: 100%; right: 0; top: 0; background-color: rgba(128,128,128,0.66); }


/* Custom cursor */

.parent {
  position: relative;
  overflow: hidden;
  cursor: none;
}

.follower {
  width: 4rem;
  height: 4rem;
  border-radius: 100%;
  overflow: hidden;
  position: absolute;
  background-color: red;
  left: 0;
  z-index: 3;
  top: 0;
  pointer-events: none; /* Very important to prevent the follower from messing up with the mouse move */
  transition: opacity .2s ease-in-out;
}

.follower > * {
  margin: auto;
}
              
            
!

JS

              
                /*Slider function [It is recommended to place a function in a separate JS file, such as "functions.js"]*/
function myCoolSlider() {
        $('#featured-content').slick({
            dots: false,
            infinite: true,
            speed: 300,
            slidesToShow: 4,
            slidesToScroll: 4,
            responsive: [{
                breakpoint: 1200,
                settings: {
                    slidesToShow: 4,
                    slidesToScroll: 4,
                    infinite: true,
                    dots: true
                }
            }, {
                breakpoint: 992,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 3
                }
            }, {
                breakpoint: 768,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 3
                }
            }, {
                breakpoint: 480,
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 2
                }
            }]
        });
    }
    /*End of Slider function*/



$(document).ready(function() {

  
/*Calling the function [It is recommended to call a function in a separate JS file, such as "scripts.js"]*/
    myCoolSlider();
/*.................End of call*/


});

// Custom cursor
var parents = document.querySelectorAll('.mouseOver');

function onMouseMove( e ) {
    // Find its child
   var follower = this.querySelector('.follower')
    TweenMax.to(follower, 0.3, {
        x: e.offsetX,
        y: e.offsetY,
        ease:Power4.easeOut
    })
}

function init() {
    // Listen for mouse movement when over either one of the parents    
    for(var i = 0; i < parents.length; i++){
        parents[i].addEventListener('mousemove', onMouseMove)
    }
};

// wait until DOM is ready
document.addEventListener("DOMContentLoaded", function(event) {
    // wait until window, stylesheets, images, links, and other media assets are loaded
    window.onload = function() {    
        // Center the pivot point of the follower
        TweenMax.set('.follower', {
            xPercent: -50,
            yPercent: -50
        })
        // All ready, start!
        init();
     };
});


              
            
!
999px

Console