cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <h1> Overflow-based masking: aliasing artifact 1 </h1>
<!-- Mask and maskee. -->
<div class="container">
  <div id="Mask" class="mask large mask-active mask-anim">
    <div id="MaskContent" class="mask-intermediate mask-content-anim">
      <div data-content-type="text" class="content">
        <div class="text-background">
          <div class="text"> Example Text </div>
        </div>
      </div>
    </div>
  </div>

<!-- Reference content -->
  <div id="MaskOutline" class="mask"></div>
  <div class="reference">
    <div data-content-type="text" class="content">
      <div class="text-background">
        <div class="text"> Example Text </div>
      </div>
    </div>
  </div>
</div>

            
          
!
            
              /** Demo Settings */
body {
  font-family: sans-serif;
}

/** Mask styling. */
.container {
  position: absolute;
  transform-style: preserve-3d;
}

.mask {
  position: absolute;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  border-radius: 200px;
  overflow: hidden;
}

.mask-intermediate {
  transform-style: preserve-3d;
  position: absolute;
  width: 100%;
  height: 100%;
}


/** Maskee and reference content styling. */
.content {
  position: absolute;
  transform-style: preserve-3d;
}

.reference {
  position: absolute;
  left: 500px;
}

.text-background {
  position: absolute;
  width: 340px;
  height: 280px;
  background-color: #c4c4c4;
}

.text {
  position: absolute;
  left: 50px;
  top: 100px;
  font-size: 40px;
}

.mask-anim {
  animation: mask_keys 4s linear 0s infinite normal forwards;
  -moz-animation: mask_keys 4s linear 0s infinite normal forwards;
  -webkit-animation: mask_keys 4s linear 0s infinite normal forwards;
}

.mask-content-anim {
  animation: mask_content_keys 4s linear 0s infinite normal forwards;
  -moz-animation: mask_content_keys 4s linear 0s infinite normal forwards;
  -webkit-animation: mask_content_keys 4s linear 0s infinite normal forwards;
}

@keyframes mask_keys {
  0% {
    transform: translate3d(0px, 0px, 0px);
  }
  50% {
    transform: translate3d(100px, 100px, 0px);
  }
  100% {
    transform: translate3d(0px, 0px, 0px);
  }
}

@keyframes mask_content_keys {
  0% {
    transform: translate3d(0px, 0px, 0px);
  }
  50% {
    transform: translate3d(-100px, -100px, 0px);
  }
  100% {
    transform: translate3d(0px, 0px, 0px);
  }
}

            
          
!
999px
Loading ..................

Console