Created
November 20, 2018 17:13
-
-
Save availit/0fe3da58d4883c0d31af72338b380262 to your computer and use it in GitHub Desktop.
IE supported New ME Carousel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="carousel-container"> | |
<a href="#" class="control_next">></a> | |
<a href="#" class="control_prev"><</a> | |
<picture> | |
<source srcset="https://mainevent.cognizantorderserv.com/Scripts/AngularModules/src/assets/images/bannerImg/home/homebannersecond_big.jpg" media="(min-width: 1024px)" /> | |
<source srcset="https://mainevent.cognizantorderserv.com/Scripts/AngularModules/src/assets/images/bannerImg/home/homebannersecond_med.jpg" media="(min-width: 768px) and (max-width: 1023px)" /> | |
<source srcset="https://mainevent.cognizantorderserv.com/Scripts/AngularModules/src/assets/images/bannerImg/home/homebannersecond_small.jpg" media="(max-width: 767px)" /> | |
<img src="https://mainevent.cognizantorderserv.com/Scripts/AngularModules/src/assets/images/bannerImg/home/homebannersecond_big.jpg" alt="example alt text" /> | |
</picture> | |
<!-- SLIDE HEADLINE TEXT --> | |
<div class="headliner"> | |
<h1>Book your<br /> holiday party</h1> | |
<h2>By october 31st & pick a free dessert!</h2> | |
<a href="#">Let's Party</a> | |
</div> | |
<!-- NEW SIDE MENU MARKUP --> | |
<aside class="sidebar hidden-xs hidden-sm hidden-md"> | |
<nav class="nav"> | |
<ul> | |
<li><a href="#"> | |
<h1>Book the best birthday party ever</h1> | |
<h2>Plenty of activities to choose from</h2> | |
</a></li> | |
<li><a href="#"> | |
<h1>Reserve your bowling lane online</h1> | |
<h2>Save time and gaurantee your spot</h2> | |
</a></li> | |
<li><a href="#"> | |
<h1>Book your holiday party</h1> | |
<h2>Celebrate your year and your team</h2> | |
</a></li> | |
<li><a href="#"> | |
<h1>Check out our specials</h1> | |
<h2>Grab these specials while they last</h2> | |
</a></li> | |
</ul> | |
</nav> | |
</aside> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://cdn.rawgit.com/scottjehl/picturefill/3.0.2/dist/picturefill.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css?family=Roboto'); | |
body { | |
margin: 0; | |
font-family: 'Roboto',sans-serif; | |
overflow: auto; | |
} | |
.carousel-container { | |
position: relative; | |
max-width: 100vw; | |
margin: 0; | |
} | |
/* END CODEPEN REQUIREMENT */ | |
picture, img { | |
width: 100%; | |
} | |
a.control_prev, a.control_next { | |
position: absolute; | |
bottom: 0; | |
z-index: 999; | |
display: block; | |
padding: 30px 20px; | |
width: auto; | |
height: auto; | |
background: #2a2a2a; | |
color: #fff; | |
text-decoration: none; | |
font-weight: 600; | |
font-size: 18px; | |
opacity: 0.8; | |
cursor: pointer; | |
} | |
a.control_prev:hover, a.control_next:hover { | |
opacity: 1; | |
-webkit-transition: all 0.2s ease; | |
} | |
a.control_prev { | |
border-radius: 0 50px 50px 0; | |
} | |
a.control_next { | |
right: 0; | |
border-radius: 50px 0 0 50px; | |
} | |
.headliner { | |
position: absolute; | |
color: #fff; | |
bottom: 6em; | |
left: 9em; | |
} | |
.headliner h1 { | |
text-transform: uppercase; | |
font-size:72px; | |
font-weight:bold; | |
text-shadow: #000 0px 0px 30px; | |
} | |
.headliner h2 { | |
text-transform: uppercase; | |
font-size: 32px; | |
text-shadow: #000 0px 0px 30px; | |
} | |
/* Small Devices, Tablets */ | |
@media only screen and (max-width : 768px) { | |
.headliner { | |
position: absolute; | |
color: #fff; | |
bottom: 3em; | |
left: 3em; | |
} | |
.headliner h1 { | |
text-transform: uppercase; | |
font-size:32px; | |
font-weight:bold; | |
text-shadow: #000 0px 0px 30px; | |
} | |
.headliner h2 { | |
text-transform: uppercase; | |
font-size: 16px; | |
text-shadow: #000 0px 0px 30px; | |
} | |
} | |
.headliner a { | |
display:inline-block; | |
font-size: 1em; | |
letter-spacing: 0; | |
color: #214099; | |
font-family: "Roboto"; | |
font-weight: bold; | |
line-height: 45px; | |
border-radius: 27px; | |
background-color: #ffd300; | |
margin: 10px 0; | |
padding: 0 35px; | |
box-shadow: #000 0px 0px 30px; | |
} | |
.headliner a:hover { | |
text-decoration:none; | |
} | |
/* NEW MENU CSS */ | |
.sidebar { | |
position: absolute; | |
overflow:hidden; | |
right: 0; | |
top: 0; | |
bottom: 0; | |
left: auto; | |
width: 420px; | |
background: rgba(34,64,157,.77); | |
font-size: 0.65em; | |
} | |
.nav { | |
position: relative; | |
margin: 0; | |
text-align: left; | |
} | |
.nav ul { | |
top: 0; | |
list-style-type: none; | |
transition: all 300ms linear; | |
-o-transition: all 300ms linear; | |
-ms-transition: all 300ms linear; | |
-moz-transition: all 300ms linear; | |
-webkit-transition: all 300ms linear; | |
} | |
.nav ul li { | |
margin: 80px 0; | |
position: relative; | |
padding: 0 0 10px; | |
text-shadow: #000 1px 1px 0px; | |
} | |
.nav ul li::after { | |
content: ''; | |
position: absolute; | |
width: 100%; | |
height: 5px; | |
background: transparent; | |
left: 0; | |
bottom: 0; | |
background-image: linear-gradient(to right, #ffdc00, transparent); | |
} | |
.nav ul li a { | |
line-height: 2em; | |
text-transform: uppercase; | |
text-decoration: none; | |
letter-spacing: 2px; | |
color: rgba(255, 255, 255, 0.35); | |
display: block; | |
} | |
.nav ul li h1 { | |
font-size: 16px; | |
color: #ffdc00; | |
margin: 10px 0 10px; | |
font-weight:bold; | |
} | |
.nav ul li h2 { | |
color: #fff; | |
font-size: 16px; | |
margin: 0; | |
line-height: 16px; | |
font-weight: 300; | |
line-height:16px; | |
text-transform: capitalize; | |
} | |
/* HOVER EFFECTS */ | |
.nav ul li:hover:after { | |
-webkit-animation: moveFromTop 300ms ease-in-out; | |
-moz-animation: moveFromTop 300ms ease-in-out; | |
-ms-animation: moveFromTop 300ms ease-in-out; | |
-o-animation: moveFromTop 300ms ease-in-out; | |
animation: moveFromTop 300ms ease-in-out; | |
} | |
/* KEYFRAME ANIMATIONS */ | |
@-webkit-keyframes moveFromTop { | |
from { | |
opacity: 0; | |
-webkit-transform: translateY(200%); | |
-moz-transform: translateY(200%); | |
-ms-transform: translateY(200%); | |
-o-transform: translateY(200%); | |
transform: translateY(200%); | |
} | |
to { | |
opacity: 1; | |
-webkit-transform: translateY(0%); | |
-moz-transform: translateY(0%); | |
-ms-transform: translateY(0%); | |
-o-transform: translateY(0%); | |
transform: translateY(0%); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> | |
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment