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.
<!-- horizontal -->
<h4>Horizontal Flip</h4>
<div class="flip">
<div class="front" style="background-image: url(https://images.pexels.com/photos/540518/pexels-photo-540518.jpeg?w=1260&h=750&dpr=2&auto=compress&cs=tinysrgb)">
<h1 class="text-shadow">MOUNTAIN</hi>
</div>
<div class="back">
<h2>Angular</h2>
<p>Good tools make application development quicker and easier to maintain than if you did everything by hand..</p>
</div>
</div>
<div class="flip">
<div class="front" style="background-image: url(https://images.pexels.com/photos/414171/pexels-photo-414171.jpeg?w=1260&h=750&dpr=2&auto=compress&cs=tinysrgb)">
<h1 class="text-shadow">LAKE</hi>
</div>
<div class="back">
<h2>Angular</h2>
<p>Good tools make application development quicker and easier to maintain than if you did everything by hand..</p>
</div>
</div>
<div class="flip">
<div class="front" style="background-image: url(https://images.pexels.com/photos/36717/amazing-animal-beautiful-beautifull.jpg?w=1260&h=750&dpr=2&auto=compress&cs=tinysrgb)">
<h1 class="text-shadow">OCEAN</hi>
</div>
<div class="back">
<h2>Angular</h2>
<p>Good tools make application development quicker and easier to maintain than if you did everything by hand..</p>
</div>
</div>
<br>
<br>
<!-- vertical -->
<h4>Vertical Flip</h4>
<div class="flip flip-vertical">
<div class="front" style="background-image: url(https://images.pexels.com/photos/38136/pexels-photo-38136.jpeg?w=1260&h=750&dpr=2&auto=compress&cs=tinysrgb)">
<h1 class="text-shadow">FOREST</hi>
</div>
<div class="back">
<h2>Angular</h2>
<p>Good tools make application development quicker and easier to maintain than if you did everything by hand..</p>
</div>
</div>
<div class="flip flip-vertical">
<div class="front" style="background-image: url(https://images.pexels.com/photos/34950/pexels-photo.jpg?w=1260&h=750&dpr=2&auto=compress&cs=tinysrgb)">
<h1 class="text-shadow">TRACK</hi>
</div>
<div class="back">
<h2>Angular</h2>
<p>Good tools make application development quicker and easier to maintain than if you did everything by hand..</p>
</div>
</div>
<div class="flip flip-vertical">
<div class="front" style="background-image: url(https://images.pexels.com/photos/34546/sunset-lake-landscape-summer.jpg?w=1260&h=750&dpr=2&auto=compress&cs=tinysrgb)">
<h1 class="text-shadow">SWAMP</hi>
</div>
<div class="back">
<h2>Angular</h2>
<p>Good tools make application development quicker and easier to maintain than if you did everything by hand..</p>
</div>
</div>
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
* {
box-sizing: border-box;
font-weight: normal;
}
body {
color: #555;
background: #222;
text-align: center;
font-family: 'Roboto Mono';
padding: 1em;
}
h1 {
font-size: 2.2em;
}
// base
.flip {
position: relative;
>.front,
>.back {
display: block;
transition-timing-function: cubic-bezier(.175, .885, .32, 1.275);
transition-duration: .5s;
transition-property: transform, opacity;
}
>.front {
transform: rotateY(0deg);
}
>.back {
position: absolute;
opacity: 0;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
transform: rotateY(-180deg);
}
&:hover {
>.front {
transform: rotateY(180deg);
}
>.back {
opacity: 1;
transform: rotateY(0deg);
}
}
&.flip-vertical {
>.back {
transform: rotateX(-180deg);
}
&:hover {
>.front {
transform: rotateX(180deg);
}
>.back {
transform: rotateX(0deg);
}
}
}
}
// custom
.flip {
position: relative;
display: inline-block;
margin-right: 2px;
margin-bottom: 1em;
width: 400px;
>.front,
>.back {
display: block;
color: white;
width: inherit;
background-size: cover!important;
background-position: center!important;
height: 220px;
padding: 1em 2em;
background: #313131;
border-radius: 10px;
p {
font-size: 0.9125rem;
line-height: 160%;
color: #999;
}
}
}
.text-shadow {
text-shadow: 1px 1px rgba(0, 0, 0, 0.04), 2px 2px rgba(0, 0, 0, 0.04), 3px 3px rgba(0, 0, 0, 0.04), 4px 4px rgba(0, 0, 0, 0.04), 0.125rem 0.125rem rgba(0, 0, 0, 0.04), 6px 6px rgba(0, 0, 0, 0.04), 7px 7px rgba(0, 0, 0, 0.04), 8px 8px rgba(0, 0, 0, 0.04), 9px 9px rgba(0, 0, 0, 0.04), 0.3125rem 0.3125rem rgba(0, 0, 0, 0.04), 11px 11px rgba(0, 0, 0, 0.04), 12px 12px rgba(0, 0, 0, 0.04), 13px 13px rgba(0, 0, 0, 0.04), 14px 14px rgba(0, 0, 0, 0.04), 0.625rem 0.625rem rgba(0, 0, 0, 0.04), 16px 16px rgba(0, 0, 0, 0.04), 17px 17px rgba(0, 0, 0, 0.04), 18px 18px rgba(0, 0, 0, 0.04), 19px 19px rgba(0, 0, 0, 0.04), 1.25rem 1.25rem rgba(0, 0, 0, 0.04);
}
// no js !!
Also see: Tab Triggers