HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<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="header">
<div class="head">
<div class="logo"></div>
<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" fill="#ffffff" />
</svg>
<span class="profile">
<svg width="150" height="150" viewBox="0 0 150 150" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="150" height="150" fill="#8842F8" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C12.5025 3 11.25 5.4975 11.25 7.5C11.25 10.5 14.25 13.5 17.25 13.5C20.25 13.5 29.25 9.75 30.75 7.5C32.25 5.25 27.75 14.25 27.75 18C27.75 21.75 30 26.25 36 26.25C51.75 26.25 51.7875 0 86.25 0H15Z" fill="#FCFDFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M117 90.75C130.672 90.75 141.75 79.6725 141.75 66H92.25C92.25 79.6725 103.328 90.75 117 90.75Z" fill="#FCFDFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M34.5 90C48.1725 90 59.25 78.9225 59.25 65.25H9.75C9.75 78.9225 20.8275 90 34.5 90Z" fill="#FCFDFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M117 42C130.672 42 141.75 53.0775 141.75 66.75H92.25C92.25 53.0775 103.328 42 117 42Z" fill="#FCFDFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M34.5 41.25C48.1725 41.25 59.25 52.3275 59.25 66H9.75C9.75 52.3275 20.8275 41.25 34.5 41.25Z" fill="#FCFDFF" />
<path d="M33.75 76.5C39.549 76.5 44.25 71.799 44.25 66C44.25 60.201 39.549 55.5 33.75 55.5C27.951 55.5 23.25 60.201 23.25 66C23.25 71.799 27.951 76.5 33.75 76.5Z" fill="#8842F8" />
<path d="M116.25 76.5C122.049 76.5 126.75 71.799 126.75 66C126.75 60.201 122.049 55.5 116.25 55.5C110.451 55.5 105.75 60.201 105.75 66C105.75 71.799 110.451 76.5 116.25 76.5Z" fill="#8842F8" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M60 84.75C63.5025 78.2475 68.0025 75 73.5 75C78.9975 75 84 78.2475 88.5 84.75H60Z" fill="#FCFDFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M84 87.75H63.75C65.7525 92.25 69 94.5 73.5 94.5C78 94.5 81.5025 92.25 84 87.75Z" fill="#FCFDFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M71.25 96.75C73.2525 97.2525 74.7525 97.5 75.75 97.5C76.7475 97.5 78.5025 96.75 81 95.25C84 101.25 85.5 106.253 85.5 110.25C85.5 116.25 81 117.75 81 117.75C81 117.75 76.5 118.5 75.75 113.25C74.7525 114.75 73.2525 115.253 71.25 114.75C68.7525 113.752 67.5 111.503 67.5 108C67.5 104.497 68.7525 100.747 71.25 96.75Z" fill="#FCFDFF" />
</svg>
</span>
</span>
</div>
<div class="other">
<span>TV Shows</span>
<span>Movies</span>
<span>Categories <svg style="width:24px;height:24px" viewBox="0 0 24 24">
<path fill="currentColor" d="M7,10L12,15L17,10H7Z" />
</svg></span>
</div>
</div>
<section class="silderbanner">
<section class="banner">
<img src="https://i.imgur.com/UsDIQul.jpg" class="bannerimg" />
</section>
<section class="titlehead">
<img src="https://i.imgur.com/7lmUyWs.png" class="titleimg" />
<span class="toppy">
<span class="top10">Top 10</span>
<span class="todaydate">
#1 in Movies Today
</span>
</span>
<div class="footerbanner">
<span class="listbutton">
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
<path fill="currentColor" d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />
</svg>
<span>My List</span>
</span>
<span class="playbutton">
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
<path fill="currentColor" d="M8,5.14V19.14L19,12.14L8,5.14Z" />
</svg>
<span>Play</span>
</span>
<span class="infobutton">
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
<path fill="currentColor" d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z" />
</svg>
<span>Info</span>
</span>
</div>
</section>
</section>
<section style="margin-top: 30px;">
<div class="mylist" id="mylist">
<div class="section-header">
<h2>My List</h2>
</div>
<div class="my-list-slider">
<div class="itm movie-1">
<img src="https://i.pinimg.com/236x/69/61/ee/6961eef897c18402e09eab07be8dee87.jpg" />
</div>
<div class="itm movie-2">
<img src="https://i.pinimg.com/236x/a7/df/3f/a7df3f73622a7bb7e08d87819884c966.jpg" />
</div>
<div class="itm movie-3">
<img src="https://i.pinimg.com/236x/7c/53/c2/7c53c23a2c437168a108df013f9f447f.jpg" />
</div>
<div class="itm movie-4">
<img src="https://i.pinimg.com/236x/59/47/f4/5947f473d2b7558d7d6c1894347be70b.jpg" />
</div>
<div class="itm movie-5">
<img src="https://i.pinimg.com/236x/7b/1d/1b/7b1d1b854faf3c01dd4aacf1cdbd9aee.jpg" />
</div>
<div class="itm movie-6">
<img src="https://i.pinimg.com/236x/e8/67/2c/e8672c76e14e3efad15a2c8d02dac8b0.jpg" />
</div>
<div class="itm movie-7">
<img src="https://i.pinimg.com/236x/1a/30/98/1a3098d0372034226f09ee362f125184.jpg" />
</div>
<div class="itm movie-8">
<img src="https://i.pinimg.com/236x/9c/d7/d7/9cd7d757b9bbfbadd394867b3d034b55.jpg" />
</div>
<div class="itm movie-9">
<img src="https://i.pinimg.com/236x/d1/49/77/d1497720ae962062d66544002bf47d73.jpg" />
</div>
</div>
</div>
<div class="popularonnetflix" id="popularonnetflix">
<div class="section-header">
<h2>Popular on Netflix</h2>
</div>
<div class="my-list-slider">
<div class="itm movie-1">
<img src="https://i.pinimg.com/236x/69/61/ee/6961eef897c18402e09eab07be8dee87.jpg" />
</div>
<div class="itm movie-2">
<img src="https://i.pinimg.com/236x/ce/3b/77/ce3b77ad6614bbda7cd8eb93cff2c9ad.jpg" />
</div>
<div class="itm movie-3">
<img src="https://i.pinimg.com/236x/d0/53/96/d05396afead4da4938c411847c809907.jpg" />
</div>
<div class="itm movie-4">
<img src="https://i.pinimg.com/236x/59/47/f4/5947f473d2b7558d7d6c1894347be70b.jpg" />
</div>
<div class="itm movie-5">
<img src="https://i.pinimg.com/236x/7b/1d/1b/7b1d1b854faf3c01dd4aacf1cdbd9aee.jpg" />
</div>
<div class="itm movie-6">
<img src="https://i.pinimg.com/236x/e8/67/2c/e8672c76e14e3efad15a2c8d02dac8b0.jpg" />
</div>
<div class="itm movie-7">
<img src="https://i.pinimg.com/236x/65/19/df/6519dffbb4b1868b3941bee08bd4378f.jpg" />
</div>
<div class="itm movie-8">
<img src="https://i.pinimg.com/236x/5c/e6/2d/5ce62d89d391e02f5cc617788a5f6239.jpg" />
</div>
<div class="itm movie-9">
<img src="https://i.pinimg.com/236x/d1/49/77/d1497720ae962062d66544002bf47d73.jpg" />
</div>
</div>
</div>
<div class="trendingnow" id="trendingnow">
<div class="section-header">
<h2>Trending Now</h2>
</div>
<div class="my-list-slider">
<div class="itm movie-1">
<img src="https://i.pinimg.com/236x/28/82/ab/2882abbe14f929dce767a3bbb52e4ecf.jpg" />
</div>
<div class="itm movie-2">
<img src="https://i.pinimg.com/236x/ce/3b/77/ce3b77ad6614bbda7cd8eb93cff2c9ad.jpg" />
</div>
<div class="itm movie-3">
<img src="https://i.pinimg.com/236x/43/4e/d7/434ed75cd410bcf8894821f34299cf73.jpg" />
</div>
<div class="itm movie-4">
<img src="https://i.pinimg.com/236x/f5/85/67/f585677b91bb5517bb6fab4e926066f7.jpg" />
</div>
<div class="itm movie-5">
<img src="https://i.pinimg.com/236x/7b/1d/1b/7b1d1b854faf3c01dd4aacf1cdbd9aee.jpg" />
</div>
<div class="itm movie-6">
<img src="https://i.pinimg.com/236x/e8/67/2c/e8672c76e14e3efad15a2c8d02dac8b0.jpg" />
</div>
<div class="itm movie-7">
<img src="https://i.pinimg.com/236x/e6/41/56/e64156ea0e314df5abdffade75dc643a.jpg" />
</div>
<div class="itm movie-8">
<img src="https://i.pinimg.com/236x/5c/e6/2d/5ce62d89d391e02f5cc617788a5f6239.jpg" />
</div>
<div class="itm movie-9">
<img src="https://i.pinimg.com/236x/11/e1/ae/11e1aece8d0745cb870480c8a2f35afc.jpg" />
</div>
</div>
</div>
<div class="netflixoriginals" id="netflixoriginals">
<div class="section-header">
<h2>Netflix Originals</h2>
</div>
<div class="my-list-slider">
<div class="itm movie-1">
<img src="https://m.media-amazon.com/images/M/MV5BMWZkM2I2NjE[email protected]@._V1_.jpg" />
</div>
<div class="itm movie-2">
<img src="https://m.media-amazon.com/images/M/MV5BYWVkMWEyMDU[email protected]@._V1_.jpg" />
</div>
<div class="itm movie-3">
<img src="https://m.media-amazon.com/images/M/MV5BZmU0ZTQ1OWYt[email protected]._V1_.jpg" />
</div>
<div class="itm movie-4">
<img src="https://m.media-amazon.com/images/M/MV5BZTg0NThkODY[email protected]@._V1_.jpg" />
</div>
<div class="itm movie-5">
<img src="https://m.media-amazon.com/images/M/MV5BZDRmNjVmODUtZjc0Zi00YTVkLWJhZjYtNjRjYmJiMjU4ODJkXkEyXkFqcGdeQXVyMTEyMjM2NDc2._V1_.jpg" />
</div>
<div class="itm movie-6">
<img src="https://m.media-amazon.com/images/M/MV5BYzZkOTY4MDg[email protected]@._V1_.jpg" />
</div>
<div class="itm movie-7">
<img src="https://oyster.ignimgs.com/wordpress/stg.ign.com/2018/08/castle.jpg" />
</div>
<div class="itm movie-8">
<img src="https://static.wikia.nocookie.net/netflix/images/9/96/Secret_Magic_Control_Agency.png/revision/latest?cb=20210324043413" />
</div>
</div>
</div>
<div class="top10" id="top10">
<div class="section-header">
<h2>Top 10 in <span id='location'>India</span> Today</h2>
</div>
<div class="my-list-slider">
<div class="itm movie-1">
<img src="https://i.pinimg.com/236x/28/82/ab/2882abbe14f929dce767a3bbb52e4ecf.jpg" />
</div>
<div class="itm movie-2">
<img src="https://i.pinimg.com/236x/ce/3b/77/ce3b77ad6614bbda7cd8eb93cff2c9ad.jpg" />
</div>
<div class="itm movie-3">
<img src="https://i.pinimg.com/236x/43/4e/d7/434ed75cd410bcf8894821f34299cf73.jpg" />
</div>
<div class="itm movie-4">
<img src="https://i.pinimg.com/236x/f5/85/67/f585677b91bb5517bb6fab4e926066f7.jpg" />
</div>
<div class="itm movie-5">
<img src="https://i.pinimg.com/236x/7b/1d/1b/7b1d1b854faf3c01dd4aacf1cdbd9aee.jpg" />
</div>
<div class="itm movie-6">
<img src="https://i.pinimg.com/236x/e8/67/2c/e8672c76e14e3efad15a2c8d02dac8b0.jpg" />
</div>
<div class="itm movie-7">
<img src="https://i.pinimg.com/236x/e6/41/56/e64156ea0e314df5abdffade75dc643a.jpg" />
</div>
<div class="itm movie-8">
<img src="https://i.pinimg.com/236x/5c/e6/2d/5ce62d89d391e02f5cc617788a5f6239.jpg" />
</div>
<div class="itm movie-9">
<img src="https://i.pinimg.com/236x/11/e1/ae/11e1aece8d0745cb870480c8a2f35afc.jpg" />
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Poppins:[email protected],200;400;700");
@import url("https://fonts.googleapis.com/css2?family=Nunito:[email protected];400;600;700;800;900&display=swap");
body {
background: #e8eaf6;
height: 100%;
}
.module {
background: #050505;
font-family: "Poppins", sans-serif;
border-radius: 25px;
padding: 20px;
box-shadow: 3px 3px 15px rgba(0, 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 */
position: relative;
z-index: 3;
padding-top: 0;
}
.module .header.activescroll {
top: -50px;
background: rgb(0 0 0 / 54%);
}
.other {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 7px 20px;
padding-bottom: 0;
}
.other span {
color: #fff;
font-size: 12px;
}
.module::-webkit-scrollbar {
display: none;
}
.module:before {
content: "";
display: block;
top: 4px;
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 15px;
height: 15px;
background: #000;
z-index: 6;
border-radius: 100px;
background-image: url(https://i.imgur.com/GCiEevy.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
overflow: hidden;
}
.module .notify {
z-index: 3;
top: 5px;
position: absolute;
width: 280px;
left: 50%;
transform: translateX(-50%);
}
.module .notify img {
width: 100%;
}
.header.activescroll .head {
opacity: 0;
visibility: hidden;
}
section.banner {
position: absolute;
top: 0;
left: 0;
width: calc(100% + 0px);
height: 400px;
}
section.banner img {
width: calc(100% + 0px);
object-fit: cover;
height: 100%;
}
.module .movie-detail {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 100%;
background-color: #f5f5f5;
transform: translatey(100%) scaley(0);
transition: ease all 0.3s;
z-index: 2;
}
section.silderbanner {
position: relative;
width: 340px;
height: 400px;
margin-top: -95px;
margin-left: -25px;
}
span.toppy .top10 {
width: 22px;
flex-wrap: wrap;
display: flex;
justify-content: center;
align-items: center;
height: 22px;
color: #fff;
border: 2px solid #fff;
font-size: 7px;
text-align: center;
font-weight: bold;
line-height: 7px;
text-transform: uppercase;
}
span.toppy {
display: flex;
justify-content: center;
align-items: center;
margin-top: 10px;
}
span.toppy .todaydate {
font-size: 13px;
font-weight: bold;
color: #fff;
padding-left: 6px;
}
section.titlehead {
position: absolute;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
section.titlehead img.titleimg {
width: 146px;
height: 100%;
object-fit: contain;
}
.module .movie-detail .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, 0.9),
0px 20px 20px rgba(0, 0, 0, 0.3);
}
.module .movie-detail .wrapper-image .play {
cursor: pointer;
position: absolute;
bottom: -40px;
left: 50%;
transform: translate(-50%, 0);
width: 80px;
height: 80px;
transition: ease all 0.3s;
border-radius: 100%;
background-color: white;
box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.6),
0px 20px 20px rgba(0, 0, 0, 0.1);
}
.module .movie-detail .wrapper-image .play svg {
transition: ease all 0.3s;
width: 20px;
transform: translate(32px, 28px);
fill: #de3852;
}
.module .movie-detail .wrapper-image .play:hover svg {
width: 25px;
transform: translate(30px, 26px);
}
.module .movie-detail h2 {
font-family: "Nunito", sans-serif;
text-align: center;
font-size: 18px;
font-weight: 900;
padding: 0 60px;
margin-top: 70px;
text-transform: uppercase;
}
.module .movie-detail.active {
transform: translatey(0%) scaley(1);
}
.module .header {
position: -webkit-sticky;
position: sticky;
top: -20px;
z-index: 2;
padding: 20px;
width: calc(100% +40px);
display: flex;
background: transparent;
justify-content: space-between;
align-items: center;
flex-direction: column;
vertical-align: middle;
margin: 0 -20px;
/* backdrop-filter: blur(2px); */
padding-bottom: 10px;
transition: background 0.4s;
}
section.banner:before {
content: "";
background: rgb(0 0 0 / 0%);
position: absolute;
top: 0;
left: 0;
width: calc(100% + 0px);
height: 400px;
background-image: linear-gradient(
rgb(0 0 0 / 57%),
rgb(0 0 0 / 0%),
rgb(0 0 0 / 48%),
rgb(0 0 0)
);
}
.logo:before {
content: "";
width: 10px;
height: 100%;
position: absolute;
background: #e80000;
top: 0;
opacity: 1;
transform: skewX(18deg);
left: 8px;
box-shadow: inset 0 1px 2px rgb(0 0 0 / 20%), 0 19px 38px rgb(0 0 0 / 30%),
0 15px 12px rgb(0 0 0 / 22%), 0 0 100px rgb(0 0 0 / 30%);
}
.logo {
width: 26px;
height: 33px;
background-image: linear-gradient(
to right,
#b30000 33%,
#0000 33%,
#0000 67%,
#b30000 67%,
#b30000 100%
);
position: relative;
}
span.other {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 10px 40px;
padding-bottom: 0px;
}
span.other span {
color: #fff;
font-size: 15px;
}
.module .header .menu svg {
width: 18px;
}
.head {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.module .header .search svg {
width: 18px;
}
.module .hero-slider {
margin: 0 -20px;
margin-top: 30px;
margin-bottom: 0;
}
.module .hero-slider .slick-list {
padding-bottom: 40px !important;
height: 235px;
}
.module .hero-slider .slick-slide {
border: 0;
outline: none;
margin: 0 5px;
width: 250px;
transition: ease all 0.3s;
height: 165px;
transform: translatey(10px);
opacity: 0.5;
}
.module .hero-slider .slick-slide.slick-current {
height: 195px;
opacity: 1;
transform: translatey(0);
}
.module .hero-slider .slick-slide.slick-current .slide-content {
height: 195px;
background-size: 100% auto;
}
.module .hero-slider .slick-slide.slick-current .slide-content h3 {
-webkit-animation: fadeInUp 0.3s both ease-out;
animation: fadeInUp 0.3s both ease-out;
}
.module .hero-slider .slide-content {
transition: ease all 0.3s;
vertical-align: middle;
height: 165px;
background: #eee;
border-radius: 10px;
text-align: center;
background-position: center center;
position: relative;
background-size: 130% auto;
}
.module .hero-slider .slide-content.full {
position: absolute;
}
.module .hero-slider .slide-content.nut {
background-image: url("https://image.tmdb.org/t/p/w370_and_h556_bestv2/aRD1vLU7k5NHO0HThfHrjEQwWRz.jpg");
}
.module .hero-slider .slide-content.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");
}
.module .hero-slider .slide-content.onward {
background-image: url("https://images-na.ssl-images-amazon.com/images/I/71YwxjfhEiL._AC_SY679_.jpg");
}
.module .hero-slider .slide-content:before {
transition: ease all 0.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;
}
.module .hero-slider .slide-content 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: "Nunito", sans-serif;
text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
-webkit-animation: fadeOutDown 0.3s both ease-out;
animation: fadeOutDown 0.3s both ease-out;
}
.module .category-slider {
margin: 20px -20px;
}
.module .category-slider .slick-list {
padding: 0 20px;
padding-bottom: 40px !important;
}
.module .category-slider .slick-list .slick-slide {
border: 0;
outline: none;
margin: 0 5px;
height: 70px;
width: 175px;
}
.module .category-slider .slick-list .category {
transition: ease all 0.3s;
vertical-align: middle;
height: 70px;
width: 175px;
background: #eee;
border-radius: 10px;
background-position: center center;
position: relative;
background-size: 100% auto;
}
.module .category-slider .slick-list .category 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 0.3s;
}
.module .category-slider .slick-list .category:after {
background: #a3222b;
background: linear-gradient(
0deg,
rgba(255, 54, 68, 0.9) 0%,
rgba(200, 38, 47, 0.9) 50%,
rgba(195, 63, 73, 0.7) 100%
);
transition: ease all 0.3s;
content: "";
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
border-radius: 10px;
}
.module .category-slider .slick-list .category:before {
transition: ease all 0.3s;
content: "";
position: absolute;
width: 90%;
height: 100%;
background-color: #eee;
background-size: cover;
z-index: -1;
filter: blur(20px);
opacity: 0.9;
left: 50%;
transform: translate(-50%, 10%);
border-radius: 30px;
}
.module .my-list-slider {
margin: 20px -20px;
}
.module .my-list-slider .slick-list {
padding: 0 20px;
}
.module .my-list-slider .slick-list .slick-slide {
border: 0;
outline: none;
margin: 0 5px;
width: 97px;
height: 145px;
}
.module .my-list-slider .slick-list .itm {
transition: ease all 0.3s;
vertical-align: middle;
background: #eee;
border-radius: 4px;
background-position: center center;
position: relative;
background-repeat: none;
background-size: 100% auto;
height: 100%;
width: 100%;
overflow: hidden;
}
.netflixoriginals .my-list-slider .slick-list .slick-slide {
width: 140px;
height: 208px;
}
.section-header h2 {
font-size: 15px;
color: #fff;
font-weight: bold;
}
.module .my-list-slider .slick-list .itm img {
width: 100%;
height: 100%;
object-fit: cover;
}
.module .my-list-slider .slick-list .itm:before {
transition: ease all 0.3s;
content: "";
position: absolute;
width: 90%;
height: 100%;
background-image: inherit;
background-size: cover;
z-index: -1;
filter: blur(20px);
opacity: 0.9;
left: 50%;
transform: translate(-50%, 10%);
border-radius: 30px;
}
.module .section-header {
display: flex;
width: 100%;
}
.module .section-header h2 {
font-size: 20px;
font-family: "Nunito", sans-serif;
margin: 0;
}
.module .section-header .go {
margin-left: auto;
}
.module .section-header .go svg {
height: 20px;
width: 20px;
}
/* DEV */
.dribbble {
position: fixed;
display: block;
right: 20px;
bottom: 20px;
z-index: 99;
}
.dribbble img {
display: block;
height: 28px;
}
.dev {
position: fixed;
font-size: 14px;
top: 10px;
left: 10px;
padding: 1em;
color: #212121;
background-color: white;
border-radius: 25px;
cursor: pointer;
}
.dev a {
text-decoration: none;
font-weight: bold;
color: #212121;
transition: ease all 0.3s;
}
.dev a:hover {
color: #ef5350;
text-decoration: underline;
}
.dev span {
display: inline-block;
transition: ease all 0.3s;
}
.dev span:hover {
transform: scale(1.2);
}
.footerbanner .listbutton {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
line-height: 18px;
}
.footerbanner .listbutton span {
color: #918f92;
font-size: 10px;
font-weight: 600;
}
.footerbanner .listbutton svg {
color: #e7e5e6;
}
.footerbanner {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 0 57px;
margin-top: 16px;
}
span.profile {
width: 30px;
height: 20px;
overflow: hidden;
background: #8842f8;
border-radius: 2px;
margin-left: 15px;
box-shadow: 0px 0px 9px rgb(0 0 0 / 20%);
}
span.profile svg {
width: 20px !important;
height: 20px;
border-radius: 3px;
}
span.playbutton {
padding: 4px 12px;
background: #fff;
border-radius: 2px;
}
span {
letter-spacing: 1px;
}
span.playbutton svg {
color: #000;
}
span.playbutton span {
font-size: 14px;
font-weight: 800;
text-transform: capitalize;
margin-left: 2px;
color: #000;
}
span.infobutton {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
line-height: 18px;
}
span.infobutton svg {
color: #e7e5e6;
}
span.infobutton span {
color: #918f92;
font-size: 10px;
font-weight: 600;
}
@-webkit-keyframes tracking-in-expand {
0% {
letter-spacing: -0.5em;
opacity: 0;
}
40% {
opacity: 0.6;
}
100% {
opacity: 1;
}
}
@keyframes tracking-in-expand {
0% {
letter-spacing: -0.5em;
opacity: 0;
}
40% {
opacity: 0.6;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes tracking-out-contract {
0% {
opacity: 1;
}
50% {
opacity: 1;
}
100% {
letter-spacing: -0.5em;
opacity: 0;
}
}
@keyframes tracking-out-contract {
0% {
opacity: 1;
}
50% {
opacity: 1;
}
100% {
letter-spacing: -0.5em;
opacity: 0;
}
}
$('.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: 3,
slidesToScroll: 3,
autoplay: false,
arrows: false,
variableWidth:true,
centerMode: false
});
$('.module').scroll(function(){
if ($(this).scrollTop() > 20) {
$('.header').addClass('activescroll');
$('.banner').addClass('activescroll');
} else {
$('.header').removeClass('activescroll');
$('.banner').removeClass('activescroll');
}
});
$.get("https://ipinfo.io", function(response) {
console.log(response.city, response.country);
$('#location').html(response.city+' '+response.country)
}, "jsonp");
Also see: Tab Triggers