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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

              <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//">

<div class="intro">
  <h1>Motion Blur Experiment</h1>
  <h2>by <a href="">Lucas Bebber</a></h2>
  <p>Click on the button below</p>
<button class="open-modal">Open Modal</button>

<div class="modal-overlay"></div>

<div class="modal">
  <button class="close-modal">×</button>
  <div class="icon">
    <i class="fa fa-user-plus"></i> 
  <h1>Some Title</h1>
  <input class="input-text" type="text" placeholder="some field"/>
  <input class="input-text" type="text" placeholder="some other field"/>
  <input class="input-submit" type="submit" value="Some Button"/>

<svg xmlns="" version="1.1" class="filters">
      <filter id="blur">
          <feGaussianBlur id="blur-filter" in="SourceGraphic" stdDeviation="0,0" />
@import url(,700,300)

font-roboto="Roboto", sans-serif
  position absolute
  top 0
  left 0
  bottom 0
  right 0

  background red
  border none
  color white
  font-family font-roboto
  font-weight 700
  outline none
  box-sizing border-box

  color inherit
  background white
  color black
  font-family roboto
  overflow hidden
    content ""
    display none
    background rgba(10,0,0,0.1)

h1, h2, h3
  font-weight 300
  margin 0

  font-size 60px
  color red

  background alpha(black,0.4)
  opacity 0
  visibility hidden

  background white
  text-align center
  width 230px
  height 320px
  border-radius 3px
  margin auto
  padding 20px
  //box-shadow 0px 8px 13px 6px rgba(0,0,0,0.03);
  filter url('#blur')
  transform translate3d(0,-900%,0);
    margin-bottom 20px

  margin-bottom 10px
  padding 10px
  font-family roboto
  border none 
  width 100%

  background white
  border-bottom 2px solid gray
  outline none
  color black

  border-bottom-color red

  color black

  @extend $default-button
  margin-top 10px

  background none
  border none
  position absolute
  font-size 20px
  right 10px
  top 10px
  color black
  outline none

  width 200px
  height 40px
  margin auto
  @extend $default-button
  text-align center
  margin auto
  height 120px
  transform translate(0,-90px)

  position absolute
  width 0
  height 0
  var $obj=$(".modal")
  function setBlur(v){
    blur.setAttribute("stdDeviation", v);
  function getPos(){
    return $obj.position();
  var lastPos=getPos();
  function update(){
    var pos=getPos();
    var limit=20;
    var dx=Math.min(limit,Math.abs(pos.left-lastPos.left)*0.5);
    var dy=Math.min(limit,Math.abs(*0.5);
  var isOpen=false;
  	function openModal(){
  function closeModal(){$overlay,0.1,{delay:0.55,autoAlpha:0});$obj,0.55,{y:$(window).height()+$obj.height(),ease:Back.easeIn,force3D:true});
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.