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.
#perspektive
#cube
.front Front
.back Back
.left Left
.right Right
.top Top
.bottom Bottom
#info
p <span>Hover</span> over and/or <span>Click</span> on the cube to see an animation!
*
box-sizing: border-box
body
background: #719BA8
user-select: none
#info p
position: absolute
width: 100%
bottom: 50px
color: rgba(255,255,255,0.5)
text-align: center
font:
family: arial
size: 18px
text-transform: uppercase
span
color: rgba(255,255,255,1)
#perspektive
perspective: 700px
-webkit-perspective: 700px
#cube
position: relative
margin: 100px auto
width: 100px
transform-style: preserve-3d
transform: rotateX(-10deg) rotateY(20deg) scaleX(1) scaleY(1) scaleZ(1)
transition: transform 2500ms ease-in-out
&:hover
cursor: pointer
transform: rotateX(-35deg) rotateY(220deg) scaleX(1.2) scaleY(1.2) scaleZ(1.2)
&:active
transform: rotateX(35deg) rotateY(380deg) scaleX(2) scaleY(2) scaleZ(2)
div
width: 100px
height: 100px
background: #333
position: absolute
color: rgba(255,255,255,0.5)
text-align: center
line-height: 100px
font:
family: arial
size: 18px
text-transform: uppercase
-webkit-filter: blur(0)
.front
background: #C28D7C
transform: translateZ(50px)
.back
background: #C28D7C
transform: translateZ(-50px) rotateY(180deg)
.left
background: #D4A190
transform: translateX(-50px) rotateY(-90deg)
.right
background: #D4A190
transform: translateX(50px) rotateY(90deg)
.top
background: #EBB7A7
transform: translateY(-50px) rotateX(90deg)
.bottom
background: #EBB7A7
transform: translateY(50px) rotateX(-90deg)
Also see: Tab Triggers