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

              
                <!-- Please ❤ this if you like it! -->
<!-- Follow Me https://codepen.io/designfenix -->
<!-- dribbble -->
<a class="dribbble" href="https://dribbble.com/shots/5026483-Netflix-Mobile-App-Redesign/" target="_blank"><img src="https://cdn.dribbble.com/assets/dribbble-ball-mark-2bd45f09c2fb58dbbfb44766d5d1d07c5a12972d602ef8b32204d28fa3dda554.svg" alt=""></a>
<p class="dev">Developed with <span>❤</span> by <a href="https://codepen.io/designfenix/" target="_blank">Fernando Cohen</a> </p>
<div class="container">
  <div class="row justify-content-center">
    <div class="col-lg-4 col-md-6 col-sm-8 col-12">
      <div class="module my-5">
        <div class="notify">
          <img src="https://lh3.googleusercontent.com/wj0UmT0er4pBCR5wZPm5R8KDbt_3IKwasUnrx7baja-Fjj7tac2OEKDdtXAumQwlxI2souiZPQBCkA0raqUUaIU8tx_83EBsW5ODx17m3mfjEsS7Jv7h3fcAkHuyQbO-8HzmkJKDdruOmrseZvqZHV20DLmeocjRxxOjxIuMFuFM95R-XIXaKS1ojNy8B3gLKOzl06Cr6lDg3osz90zeeXpEeQtu0iiba3a1XKO2zh1lplMDxU_UChKRyzgHeaMdgQ5OoH9Snfp9otHoFhm1TjnHc28qsXPsw3gu6wUPecADXYC3cRJby9OB4xqH6uk4TeLQBz5p6wWqN52gAFb6eZLp-EPJqywQwGBO27SRqgdFqev4yw1nGrU7of8ew3LKlp94yJ2ZVzcdNPxEkOjC3TF7W256nX0BGkpnvTkg3TgCeoAodP0V8jO7V_HYwR4tpJEut3rTTprq1Qy9V1ZHfvBFULt2Hpi5ZseM_SJvNOITDb5I2C3QSIn7GKdU8dZqS7Ympt95Zoy3K5R-9fFuqkTW96_X1NCRHl00wQNY-d_PBxGHiwTZUwMlnIRduAIAnDrdi1VP01k74-bOfqieL4Rn2NSKM9yo5OfLAswvlPpZuqKdOBcGWLp6dNLdUAE0Y_uBXNBZNmYr-aCZAOYI9I_KBQmDfT0yV_qPoAPnm4w0yUe-ZBZReiOK9v5fZgC5LDLA=w1366-h625-ft" alt="">
        </div>
        <div class="header">
          <span class="menu">
            <svg viewBox="0 0 448 512" width="100" title="bars">
              <path d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z" />
            </svg>
          </span>
          <img class="logo" src="https://upload.wikimedia.org/wikipedia/commons/0/08/Netflix_2015_logo.svg" alt="">
          <span class="search">
            <svg viewBox="0 0 512 512" width="100" title="search">
              <path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" />
            </svg>
          </span>
        </div>
        <section>
          <div class="hero-slider">
            <div class="slide-content nut"><h3>the nutcracker and the four realms</h3></div>
            <div class="slide-content onward"><h3>onward</h3></div>
            <div class="slide-content beauty"><h3>beauty and the beast</h3></div>
          </div>
          <div class="category-slider">
            <div class="category action"><h4>Action</h4></div>
            <div class="category drama"><h4>Drama</h4></div>
            <div class="category comedy"><h4>Comedy</h4></div>
          </div>
          <div class="section-header">
            <h2>My List</h2>
            <span class="go">
              <svg viewBox="0 0 448 512" width="100" title="arrow-right">
                <path d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" />
              </svg>
            </span>
          </div>
          <div class="my-list-slider">
            <div class="itm movie-1"></div>
            <div class="itm movie-2"></div>
            <div class="itm movie-3"></div>
            <div class="itm movie-4"></div>
          </div>
        </section>
        <section class="movie-detail">
          <div class="wrapper-image">
            <span class="play">
              <svg viewBox="0 0 448 512" width="100" title="play">
                <path d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z" />
              </svg>
            </span>
          </div>
          <h2>The Nutcracker and the four realms</h2>
        </section>
      </div>
    </div>
  </div>
</div>

              
            
!

CSS

              
                /* Please ❤ this if you like it! */
/* Follow Me https://codepen.io/designfenix */
@import url("https://fonts.googleapis.com/css?family=Poppins:wght@100,200;400;700");
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap');
$primaryFont: 'Poppins',sans-serif;
$secondaryFont: 'Nunito',sans-serif;
$black: #212121;
$gray: #d5d8d7;
$white: #fafbfd;
$primary: #efc352;
body{
  background: #E8EAF6;
  height:100%;
}
.module{
  background: #f5f5f5;
  font-family: $primaryFont;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 3px 3px 15px rgba(0,0,0,.1), 0 0 0px 5px black,10px 50px 30px -30px rgba(0,0,0,0.5);
  height: 640px;
  overflow: hidden;
  overflow-y: inherit;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  &::-webkit-scrollbar {
    display: none;
  }
  position: relative;
  z-index:3;
  &:before{
    content:'';
    display:block;
    top:0;
    position:absolute;
    left:50%;
    width: 150px;
    height: 30px;
    background: black;
    margin-left: -75px;
    z-index: 6;
    border-radius: 0 0 20px 20px;
  }
  .notify{
    z-index: 3;
    top: 5px;
    position: absolute;
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
    img{
      width: 100%;
      //filter: invert(1);
    }
  }
  .movie-detail{
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5;
    transform: translatey(100%) scaley(0);
    transition: ease all .3s;
    z-index: 2;
    .wrapper-image{
      background: url('https://image.tmdb.org/t/p/w370_and_h556_bestv2/aRD1vLU7k5NHO0HThfHrjEQwWRz.jpg') center center no-repeat;
      background-size: cover;
      height: 320px;
      position: relative;
      border-radius: 0px 0px 60% 60%/35%;
      width: 120%;
      transform: translateX(-10%);
      box-shadow: 0px 1px 0px 0px rgba(255, 255, 255,.9), 0px 20px 20px rgba(0, 0, 0, 0.3);
      .play{
        cursor:pointer;
        position: absolute;
        bottom: -40px;
        left:50%;
        transform: translate(-50%,0);
        width: 80px;
        height: 80px;
        transition: ease all .3s;
        border-radius: 100%;
        background-color: white;
        box-shadow: 0px 1px 0px 0px rgba(255, 255, 255,.6), 0px 20px 20px rgba(0, 0, 0, 0.1);
        svg{
          transition: ease all .3s;
          width: 20px;
          transform: translate(32px, 28px);
          fill: #de3852;
        }
        &:hover{
          svg{
            width: 25px;
            transform: translate(30px, 26px);
          }
        }
      }
    }
    h2{
      font-family: $secondaryFont;
      text-align: center;
      font-size: 18px;
      font-weight: 900;
      padding: 0 60px;
      margin-top: 70px;
      text-transform: uppercase;
    }
    &.active{
      transform: translatey(0%) scaley(1);
    }
  }
  .header{
    position: sticky;
    top:-20px;
    z-index: 2;
    padding: 20px;
    width:calc(100% +40px);
    display:flex;
    background: #f5f5f5;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    vertical-align: middle;
    margin: 0 -20px;
    .menu{
      svg{
        width: 18px;
      }
    }
    .logo{
      height:25px;
    }
    .search{
      svg{
        width: 18px;
      }
    }
  }
  .hero-slider{
    margin: 0 -20px;
    margin-top:30px;
    margin-bottom: 0;
    .slick-list{
      padding-bottom: 40px!important;
      height: 235px;
    }
    .slick-slide {
      border:0;
      outline: none;
      margin: 0 5px;
      width: 250px;
      transition: ease all .3s;
      height: 165px;
      transform: translatey(10px);
      opacity: .5;
      &.slick-current{
          height: 195px;
          opacity: 1;
          transform: translatey(0);
          .slide-content{
            height: 195px;
            background-size: 100% auto;
            h3{
              animation: fadeInUp .3s both ease-out;
            }
          }
      }
    }
    .slide-content{
      transition: ease all .3s;
      vertical-align: middle;
      height: 165px;
      background:#eee;
      border-radius: 10px;
      text-align: center;
      background-position: center center;
      position: relative;
      background-size: 130% auto;
       &.full{
        position: absolute;
      }
      &.nut{
        background-image:url('https://image.tmdb.org/t/p/w370_and_h556_bestv2/aRD1vLU7k5NHO0HThfHrjEQwWRz.jpg');
      }
      &.beauty{
        background-image:url('https://media1.popsugar-assets.com/files/thumbor/z5oKgNC9S4DS6Bay78Aoy5aLO4s/fit-in/728xorig/filters:format_auto-!!-:strip_icc-!!-/2017/01/26/813/n/1922283/055dc333c3280d59_BeautyAndTheBeast58726d5b9fac8/i/Beauty-Beast-2017-Movie-Posters.jpg');
      }
      &.onward{
        background-image:url('https://images-na.ssl-images-amazon.com/images/I/71YwxjfhEiL._AC_SY679_.jpg');
      }
      &:before{
        transition: ease all .3s;
        content: "";
        position: absolute;
        width: 90%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        z-index: -1;
        filter: blur(12px);
        opacity: 0.6;
        left: 50%;
        transform: translate(-50%, 8%);
        border-radius: 30px;
      }
      h3{
        color:white;
        position: absolute;
        bottom:10px;
        left:20px;
        right: 20px;
        text-align: left;
        font-size: 18px;
        font-weight: 800;
        text-transform: uppercase;
        font-family: $secondaryFont;
        text-shadow: 0 0 5px rgba(0,0,0,.5);
        animation: fadeOutDown .3s both ease-out;
      }
    }
  }
  .category-slider{
    margin: 20px -20px;
    .slick-list{
      padding: 0 20px;
      padding-bottom: 40px!important;
      .slick-slide{
        border:0;
        outline: none;
        margin: 0 5px;
        height: 70px;
        width: 175px;
      }
      .category{
        transition: ease all .3s;
        vertical-align: middle;
        height: 70px;
        width: 175px;
        background:#eee;
        border-radius: 10px;
        background-position: center center;
        position: relative;
        background-size: 100% auto;
        h4{
          text-align: center;
          line-height: 70px;
          color:white;
          font-weight: 800;
          position: relative;
          text-transform: uppercase;
          letter-spacing: 2px;
          font-size: 16px;
          z-index: 2;
          transition: ease all .3s;
        }
        &:after{
          background: rgb(163,34,43);
          background: linear-gradient(0deg, rgba(255,54,68,.9) 0%, rgba(200,38,47,.9) 50%, rgba(195,63,73,.7) 100%);
          transition: ease all .3s;
          content: "";
          position: absolute;
          width: 100%;
          height: 100%;
          left:0;
          top:0;
          border-radius: 10px;
        }
        &:before{
          transition: ease all .3s;
          content: "";
          position: absolute;
          width: 90%;
          height: 100%;
          background-color: #eee;
          background-size: cover;
          z-index: -1;
          filter: blur(20px);
          opacity: .9;
          left: 50%;
          transform: translate(-50%, 10%);
          border-radius: 30px;
        }
        &.action{
          background-image:url('https://ae01.alicdn.com/kf/HTB1omVZIpXXXXcrXVXXq6xXFXXX6.jpg');
        }
        &.comedy{
          background-image:url('https://spyrestudios.com/wp-content/uploads/comedy-posters/88_comedyposter.jpg');
        }
        &.drama{
          background-image:url('https://cdn3.f-cdn.com/contestentries/1483944/23877317/5c9c1b8630103_thumb900.jpg');
        }
      }
    }
  }
  .my-list-slider{
    margin: 20px -20px;
    .slick-list{
      padding-bottom: 60px!important;
      padding: 0 20px;
      .slick-slide{
        border:0;
        outline: none;
        margin: 0 5px;
        width: 150px;
        height: 190px;
      }
      .itm{
        transition: ease all .3s;
        vertical-align: middle;
        background:#eee;
        border-radius: 10px;
        background-position: center center;
        position: relative;
        background-repeat: none;
        background-size: 100% auto;
        height: 190px;
        width: 150px;
        &.movie-1{
          background-image:url('https://ae01.alicdn.com/kf/HTB1omVZIpXXXXcrXVXXq6xXFXXX6.jpg');
        }
        &.movie-2{
          background-image:url('https://spyrestudios.com/wp-content/uploads/comedy-posters/88_comedyposter.jpg');
        }
        &.movie-3{
          background-image:url('https://cdn3.f-cdn.com/contestentries/1483944/23877317/5c9c1b8630103_thumb900.jpg');
        }
        &.movie-4{
          background-image:url('https://spyrestudios.com/wp-content/uploads/comedy-posters/88_comedyposter.jpg');
        }
        &:before{
          transition: ease all .3s;
          content: "";
          position: absolute;
          width: 90%;
          height: 100%;
          background-image: inherit;
          background-size: cover;
          z-index: -1;
          filter: blur(20px);
          opacity: .9;
          left: 50%;
          transform: translate(-50%, 10%);
          border-radius: 30px;
        }
        &.action{
          background-image:url('https://ae01.alicdn.com/kf/HTB1omVZIpXXXXcrXVXXq6xXFXXX6.jpg');
        }
        &.comedy{
          background-image:url('https://spyrestudios.com/wp-content/uploads/comedy-posters/88_comedyposter.jpg');
        }
        &.drama{
          background-image:url('https://cdn3.f-cdn.com/contestentries/1483944/23877317/5c9c1b8630103_thumb900.jpg');
        }
      }
    }
  }
  .section-header{
    display: flex;
    width: 100%;
    h2{
      font-size: 20px;
      font-family: $secondaryFont;
      margin: 0;
    }
    .go{
      margin-left: auto;
      svg{
        height: 20px;
        width: 20px;
      }
    }
  }
}


/* DEV */
.dribbble {
    position: fixed;
    display: block;
    right: 20px;
    bottom: 20px;
    z-index: 99;
    img {
        display: block;
        height: 28px;
    }
}
.dev{
  position: fixed;
	font-size: 14px;
  top:10px;
  left:10px;
  padding: 1em;
	color: $black;
  background-color: white;
	border-radius: 25px;
  cursor:pointer;
	a{
		text-decoration: none;
		font-weight: bold;
		color: $black;
		transition: ease all .3s;
		&:hover{
			color: #EF5350;
			text-decoration: underline;
		}
	}
	span{
    display: inline-block;
    transition: ease all .3s;
    &:hover{
      transform:scale(1.2);
    }
	}
}

@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tracking-out-contract {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
}

              
            
!

JS

              
                //IN PROGRESS

/* Please ❤ this if you like it! */
/* Follow Me https://codepen.io/designfenix */

$('.hero-slider').slick({
  dots: false,
  infinite: false,
  speed: 500,
  slidesToShow: 1,
  slidesToScroll: 1,
  autoplay: false,
  autoplaySpeed: 2000,
  arrows: false,
  centerMode: true
});
$('.category-slider').slick({
  dots: false,
  infinite: false,
  speed: 500,
  slidesToShow: 2,
  slidesToScroll: 1,
  autoplay: false,
  arrows: false,
  variableWidth:true,
  centerMode: false
});
$('.my-list-slider').slick({
  dots: false,
  infinite: false,
  speed: 500,
  slidesToShow: 1,
  slidesToScroll: 1,
  autoplay: false,
  arrows: false,
  variableWidth:true,
  centerMode: false
});

/*$('.slide-content').on('click', function(){
  $('.movie-detail').toggleClass('active');
})*/
              
            
!
999px

Console