Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <script src='https://cdn.jsdelivr.net/npm/scarletsframe@0.34.0/dist/scarletsframe.min.js'></script>
  <script type="text/javascript">
    // Polyfill the PointerEvent
    (function(){function z(a){document.write('<script src="'+a+'"><\/script>')}
      if(window.PointerEvent === void 0)
        z('https://code.jquery.com/pep/0.4.3/pep.js');
    })();
  </script>
</head>
<body>
  <sf-m name="boxes">
    <div class="content" style="height: 400px;">
      <div
        sf-each="n in list"
        class="item"
        @mousedown="mouseDown"
        @mouseup="mouseUp"
        style="
          z-index: {{n.zIndex}};
          box-shadow: 0 0 {{n.boxShadow}}px black;
          transform: translate3D(0, {{n.y}}px, 0) scale({{n.scale}});
          background: linear-gradient(135deg, {{n.bg[0]}} 0%, {{n.bg[1]}} 100%);"
      >{{n.text}}</div>
    </div>
  </sf-m>
</body>
</html>
<!-- Inspired by: https://codesandbox.io/embed/r5qmj8m6lq -->
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
StefansAryapro
0viewers