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.
<figure class="snip1227"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sq-sample31.jpg" alt="sq-sample31"/><i class="ion-ios-bolt-outline"></i>
<figcaption>
<h3>Keith<span> Green</span></h3>
<p>I suppose if we couldn't laugh at things that don't make sense, we couldn't react to a lot of life.</p>
</figcaption><a href="#"></a>
</figure>
<figure class="snip1227 hover"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sq-sample33.jpg" alt="sq-sample33"/><i class="ion-ios-analytics-outline"></i>
<figcaption>
<h3>Stella<span> Reeves</span></h3>
<p>I'm learning real skills that I can apply throughout the rest of my life ... Procrastinating and rationalizing.</p>
</figcaption><a href="#"></a>
</figure>
<figure class="snip1227"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sq-sample29.jpg" alt="sq-sample29"/><i class="ion-ios-star-outline"></i>
<figcaption>
<h3>Josh<span> Briggs</span></h3>
<p>That's the problem with nature, something's always stinging you or oozing mucous all over you. Let's go and watch TV.</p>
</figcaption><a href="#"></a>
</figure>
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure.snip1227 {
font-family: 'Raleway', Arial, sans-serif;
position: relative;
overflow: hidden;
margin: 10px;
min-width: 230px;
max-width: 315px;
max-height: 315px;
width: 100%;
background: #000000;
text-align: left;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
figure.snip1227 * {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.35s ease-in;
transition: all 0.35s ease-in;
}
figure.snip1227 img {
max-width: 100%;
-webkit-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
figure.snip1227 figcaption {
position: absolute;
top: 25px;
left: 25px;
bottom: 25px;
right: 25px;
display: block;
}
figure.snip1227 figcaption:before {
position: absolute;
min-width: 50px;
min-height: 50px;
display: block;
top: 0;
left: 0;
width: 0;
content: '';
background: rgba(255, 255, 255, 0.4);
opacity: 0;
-webkit-transform: rotateX(-90deg);
transform: rotateX(-90deg);
-webkit-transition: all 0.35s ease-in;
transition: all 0.35s ease-in;
-webkit-transition-delay: 0.35s;
transition-delay: 0.35s;
}
figure.snip1227 h3,
figure.snip1227 p {
opacity: 0;
color: #ffffff;
}
figure.snip1227 h3 {
text-transform: uppercase;
margin: 0;
line-height: 50px;
padding: 0 15px;
font-weight: 400;
}
figure.snip1227 h3 span {
font-weight: 800;
}
figure.snip1227 p {
padding: 15px 15px;
text-align: left;
margin: 0;
}
figure.snip1227 i {
position: absolute;
top: 25px;
left: 25px;
font-size: 34px;
color: #000000;
width: 50px;
height: 50px;
line-height: 50px;
padding:5px;
text-align: center;
background: rgba(255, 255, 255, 0.8);
z-index: 1;
-webkit-transform: rotateX(0);
transform: rotateX(0);
}
figure.snip1227 a {
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
}
figure.snip1227:hover img,
figure.snip1227.hover img {
opacity: 0.3;
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
figure.snip1227:hover figcaption:before,
figure.snip1227.hover figcaption:before {
-webkit-animation: animateIn1227 0.7s 0.35s forwards ease;
animation: animateIn1227 0.7s 0.35s forwards ease;
}
figure.snip1227:hover h3,
figure.snip1227.hover h3,
figure.snip1227:hover p,
figure.snip1227.hover p {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
-webkit-transition-delay: 0.8s;
transition-delay: 0.8s;
}
figure.snip1227:hover i,
figure.snip1227.hover i {
opacity: 0;
-webkit-transform: rotateX(90deg);
transform: rotateX(90deg);
}
@-webkit-keyframes animateIn1227 {
0% {
opacity: 0;
width: 0%;
-webkit-transform: rotateX(-90deg);
transform: rotateX(-90deg);
}
50% {
opacity: 1;
width: 0%;
-webkit-transform: rotateX(0);
transform: rotateX(0);
}
100% {
opacity: 1;
width: 100%;
-webkit-transform: rotateX(0);
transform: rotateX(0);
}
}
@keyframes animateIn1227 {
0% {
opacity: 0;
width: 0%;
-webkit-transform: rotateX(-90deg);
transform: rotateX(-90deg);
}
40% {
opacity: 1;
width: 0%;
-webkit-transform: rotateX(0);
transform: rotateX(0);
}
100% {
opacity: 1;
width: 100%;
-webkit-transform: rotateX(0);
transform: rotateX(0);
}
}
/* Demo purposes only */
$(".hover").mouseleave(
function () {
$(this).removeClass("hover");
}
);
Also see: Tab Triggers