Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

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.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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="box">
  <span class="layer"></span>
  <span class="layer"></span>
  <span class="layer"></span>
  <span class="layer"></span>
  <span class="layer"></span>
  <span class="layer"></span>
  <span class="layer"></span>
  <span class="layer"></span>


                /* Global */
$layers: 8;

body {
  height: 100vh;
  margin: 0;
  background: #000000;
  overflow: hidden;

/* Box */
.box {
  position: relative;
  height: 100%;
  top: 50%;
  left: 50%;
  perspective: 9999px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(10deg);
  transition: 2s cubic-bezier(.2,.9,.3,1.3);
  /* Layers */
  .layer {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #FFFFFF;
    box-shadow: -4px -4px 10px 0px rgba(0,0,0,.4);
    animation: load 1.4s forwards;
    opacity: 0;

@for $i from 1 through $layers {
    padding: 135px - 15 * $i;
    transform: translate(-50%, -50%) rotateZ(180deg) translateZ(20px + 30 * $i);
    border-radius: 10% + 5 * $i;
    animation-delay: 0s + .2 * $i;

/* Load animation */
@keyframes load {
  to {
    opacity: .2;



Hi! Welcome to my little playground!

My name is Tobias Bogliolo. 'Open source' by default and always 'responsive',
I'm a publicist, visual designer and frontend developer based in Barcelona. 

Here you will find some of my personal experiments. Sometimes usefull,
sometimes simply for fun. You are free to use them for whatever you want 
but I would appreciate an attribution from my work. I hope you enjoy it.


var throttleOn = false;
var actionLock = false;
var throttleTimer = 100;

function throttle(e){
    actionLock = true;
    throttleOn = true;
      throttleOn = false;
    }, throttleTimer);
  actionLock = false;

var threshold = 20;
var box = $(".box");

function translate(e){
  var xOrigin = box.width() / 2;
  var yOrigin = box.height() / 2;
  var xPivot = (e.clientY - yOrigin) / yOrigin * -threshold;
  var yPivot = (e.clientX - xOrigin) / xOrigin * threshold;
    'transform': 'translate(-50%, -50%) rotateX('+xPivot+'deg) rotateY('+yPivot+'deg)'