JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
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="flexslider left">
<ul class="slides">
<li>
<img src="https://source.unsplash.com/BaCmEa2hy8g/1600x900">
<div class="meta">
<h1>Lorem ipsum dolor sit amet, consectetur.</h1>
<h2>Lorem ipsum dolor sit.</h2>
<div class="category">
<p>$286600</p>
<span>Category</span>
</div>
</div>
</li>
<li>
<img src="https://source.unsplash.com/RmZIUIF2S2Q/1600x900">
<div class="meta">
<h1>Lorem ipsum dolor sit amet, consectetur.</h1>
<h2>Lorem ipsum dolor sit.</h2>
<div class="category">
<p>$415000</p>
<span>Category</span>
</div>
</div>
</li>
<li>
<img src="https://source.unsplash.com/cFplR9ZGnAk/1600x900">
<div class="meta">
<h1>Lorem ipsum dolor sit amet, consectetur.</h1>
<h2>Lorem ipsum dolor sit.</h2>
<div class="category">
<p>$415000</p>
<span>Category</span>
</div>
</div>
</li>
<li>
<img src="https://source.unsplash.com/Ui8KQ0ahXBM/1600x900">
<div class="meta">
<h1>Lorem ipsum dolor sit amet, consectetur.</h1>
<h2>Lorem ipsum dolor sit.</h2>
<div class="category">
<p>$415000</p>
<span>Category</span>
</div>
</div>
</li>
</ul>
</div>
body {
background: #eee;
}
.flexslider {
width: 790px;
margin: 0 auto;
box-shadow: none;
}
.flexslider li {
position: relative;
}
.flexslider li .meta {
position: absolute;
bottom: 20px;
left: 20px;
color: white;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
font-family: 'Roboto', sans-serif;
}
.flexslider li h1 {
background: rgba(51, 51, 51, 0.5);
padding: 12px 18px 12px;
margin-bottom: 0;
font-size: 1.8em;
font-weight: 300;
}
.flexslider li h2 {
background: rgba(51, 51, 51, 0.5);
padding: 13px 18px 11px;
font-size: 1.1em;
margin-bottom: 0;
font-weight: 300;
}
.flexslider li .category {
display: flex;
flex-direction: row;
}
.flexslider li .category p {
background: #e43837;
margin-right: 7px;
font-size: 1.1em;
padding: 12px 18px 10px;
font-weight: 300;
}
.flexslider li .category span {
background: #e43837;
margin-top: 17px;
padding: 8px 12px 0;
font-size: 0.9em;
font-weight: 300;
height: 26px;
}
.flexslider li h1,
.flexslider li h2,
.flexslider li .category p,
.flexslider li .category span {
-webkit-animation-duration: .6s;
animation-duration: .6s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-name: fadeOutLeft;
animation-name: fadeOutLeft;
}
.flexslider li.flex-active-slide .meta h1,
.flexslider li.flex-active-slide .meta h2,
.flexslider li.flex-active-slide .meta .category p,
.flexslider li.flex-active-slide .meta .category span {
-webkit-animation-delay: .4s;
animation-delay: .4s;
-webkit-animation-duration: .6s;
animation-duration: .6s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-name: fadeInLeft;
animation-name: fadeInLeft;
}
.flexslider li.flex-active-slide .meta h2 {
-webkit-animation-delay: .5s;
animation-delay: .5s;
}
.flexslider li.flex-active-slide .meta .category p {
-webkit-animation-delay: .6s;
animation-delay: .6s;
}
.flexslider li.flex-active-slide .meta .category span {
-webkit-animation-delay: .8s;
animation-delay: .8s;
}
.flex-direction-nav {
position: absolute;
top: 0;
left: 30px;
}
.flex-direction-nav a {
text-decoration: none;
display: block;
width: 30px;
height: 30px;
background-color: #333;
margin: -20px 0 0;
position: absolute;
top: 50px;
z-index: 10;
overflow: hidden;
opacity: .5;
cursor: pointer;
color: #fff;
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
transition: all .3s ease;
}
.flex-direction-nav .flex-prev {
text-align: left;
left: -10px;
}
.flex-direction-nav .flex-next {
text-align: right;
left: 30px;
}
.flexslider:hover .flex-prev {
left: -10px;
}
.flexslider:hover .flex-next {
left: 30px;
}
.flexslider:hover .flex-next:hover,
.flexslider:hover .flex-prev:hover {
opacity: 1;
}
.flex-direction-nav a:before {
font-family: FontAwesome;
content: '\f104';
font-size: 25px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
top: 0;
padding: 2px;
font-size: 19px;
line-height: 27px;
}
.flex-direction-nav a.flex-next:before {
content: '\f105';
}
@-webkit-keyframes fadeInLeft {
0% {
opacity: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
100% {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeInLeft {
0% {
opacity: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
100% {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@-webkit-keyframes fadeOutLeft {
0% {
opacity: 1;
}
100% {
opacity: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
@keyframes fadeOutLeft {
0% {
opacity: 1;
}
100% {
opacity: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
$('.flexslider').flexslider({
animation: "slide",
controlNav: false
});
Also see: Tab Triggers