css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <div class="wrap">
  <div class="breaks-it"></div>
  <div class="inner">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut erat est, consequat quis libero sed, gravida fermentum orci. Donec efficitur in quam sed vestibulum. Mauris quis elit lectus. Mauris ac orci sem. Vivamus pretium quam sed ante pharetra, suscipit
      scelerisque augue facilisis. Nulla ornare purus eros, vitae dignissim est sagittis ut. Nam porta mi a varius viverra. Maecenas fermentum vulputate justo maximus ornare. Integer aliquet volutpat velit aliquet facilisis. Integer tincidunt orci et
      mauris pretium dictum. Quisque interdum ornare tortor, at facilisis odio elementum a. Nam et lacinia diam, sit amet vulputate sapien. Sed urna nunc, gravida quis sagittis vitae, tincidunt sit amet enim. Vestibulum ante ipsum primis in faucibus orci
      luctus et ultrices posuere cubilia Curae; Curabitur sit amet neque id dui tincidunt vestibulum et nec dolor. Etiam vestibulum fermentum condimentum. </p>
    <div class="stick">
      Stick this
    </div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut erat est, consequat quis libero sed, gravida fermentum orci. Donec efficitur in quam sed vestibulum. Mauris quis elit lectus. Mauris ac orci sem. Vivamus pretium quam sed ante pharetra, suscipit
      scelerisque augue facilisis. Nulla ornare purus eros, vitae dignissim est sagittis ut. Nam porta mi a varius viverra. Maecenas fermentum vulputate justo maximus ornare. Integer aliquet volutpat velit aliquet facilisis. Integer tincidunt orci et
      mauris pretium dictum. Quisque interdum ornare tortor, at facilisis odio elementum a. Nam et lacinia diam, sit amet vulputate sapien. Sed urna nunc, gravida quis sagittis vitae, tincidunt sit amet enim. Vestibulum ante ipsum primis in faucibus orci
      luctus et ultrices posuere cubilia Curae; Curabitur sit amet neque id dui tincidunt vestibulum et nec dolor. Etiam vestibulum fermentum condimentum. </p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut erat est, consequat quis libero sed, gravida fermentum orci. Donec efficitur in quam sed vestibulum. Mauris quis elit lectus. Mauris ac orci sem. Vivamus pretium quam sed ante pharetra, suscipit
      scelerisque augue facilisis. Nulla ornare purus eros, vitae dignissim est sagittis ut. Nam porta mi a varius viverra. Maecenas fermentum vulputate justo maximus ornare. Integer aliquet volutpat velit aliquet facilisis. Integer tincidunt orci et
      mauris pretium dictum. Quisque interdum ornare tortor, at facilisis odio elementum a. Nam et lacinia diam, sit amet vulputate sapien. Sed urna nunc, gravida quis sagittis vitae, tincidunt sit amet enim. Vestibulum ante ipsum primis in faucibus orci
      luctus et ultrices posuere cubilia Curae; Curabitur sit amet neque id dui tincidunt vestibulum et nec dolor. Etiam vestibulum fermentum condimentum. </p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut erat est, consequat quis libero sed, gravida fermentum orci. Donec efficitur in quam sed vestibulum. Mauris quis elit lectus. Mauris ac orci sem. Vivamus pretium quam sed ante pharetra, suscipit
      scelerisque augue facilisis. Nulla ornare purus eros, vitae dignissim est sagittis ut. Nam porta mi a varius viverra. Maecenas fermentum vulputate justo maximus ornare. Integer aliquet volutpat velit aliquet facilisis. Integer tincidunt orci et
      mauris pretium dictum. Quisque interdum ornare tortor, at facilisis odio elementum a. Nam et lacinia diam, sit amet vulputate sapien. Sed urna nunc, gravida quis sagittis vitae, tincidunt sit amet enim. Vestibulum ante ipsum primis in faucibus orci
      luctus et ultrices posuere cubilia Curae; Curabitur sit amet neque id dui tincidunt vestibulum et nec dolor. Etiam vestibulum fermentum condimentum. </p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut erat est, consequat quis libero sed, gravida fermentum orci. Donec efficitur in quam sed vestibulum. Mauris quis elit lectus. Mauris ac orci sem. Vivamus pretium quam sed ante pharetra, suscipit
      scelerisque augue facilisis. Nulla ornare purus eros, vitae dignissim est sagittis ut. Nam porta mi a varius viverra. Maecenas fermentum vulputate justo maximus ornare. Integer aliquet volutpat velit aliquet facilisis. Integer tincidunt orci et
      mauris pretium dictum. Quisque interdum ornare tortor, at facilisis odio elementum a. Nam et lacinia diam, sit amet vulputate sapien. Sed urna nunc, gravida quis sagittis vitae, tincidunt sit amet enim. Vestibulum ante ipsum primis in faucibus orci
      luctus et ultrices posuere cubilia Curae; Curabitur sit amet neque id dui tincidunt vestibulum et nec dolor. Etiam vestibulum fermentum condimentum. </p>

  </div>
</div>
            
          
!
            
              .wrap {
  max-width: 480px;
    margin: 0 auto;
  padding: 48px 0;
      position: relative;
    border-radius: 4px;

    pointer-events: auto;
}
.inner {
  position: relative;
  z-index: 2;
  color: red;
}

.breaks-it {
  position: fixed;
 z-index: 1;
    -webkit-transition: background-color 0.33s;
    transition: background-color 0.33s;
    cursor: pointer;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.8);
}


.stick {
  position: sticky;
  top: 0;
  line-height: 36px;
  background-color: grey;
  color: white;
}

.spin {
  width: 48px; 
  height: 48px; 
  margin: 0 auto;
  background-color: grey;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}


.preloader {
  position: relative;
  margin: 0 auto;
  width: 48px; }
  .preloader_sm {
    width: 24px; }
  .preloader:before {
    content: '';
    display: block;
    padding-top: 100%; }

.preloader_circular {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  -webkit-animation: rotate 2s linear infinite;
          animation: rotate 2s linear infinite;
  -webkit-transform-origin: center center;
          transform-origin: center center; }

.preloader_path {
  stroke-dasharray: 25, 200;
  stroke-dashoffset: 0;
  -webkit-animation: dash 1.5s ease-in-out infinite;
          animation: dash 1.5s ease-in-out infinite;
  stroke-linecap: round;
  stroke-width: 3px;stroke:red; }

@-webkit-keyframes rotate {
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg); } }

@keyframes rotate {
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg); } }

@-webkit-keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0; }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px; }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px; } }

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0; }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px; }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px; } }
            
          
!
999px
🕑 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.
Loading ..................

Console