Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <div class="container">
  <div>Ebrio de trementina y largos besos,</div>
  <div>estival, el velero de las rosas dirijo,</div>
  <div>torcido hacia la muerte del delgado día,</div>
  <div>cimentado en el sólido frenesí marino.</div>
  <br>
  <div>Pálido y amarrado a mi agua devorante</div>
  <div>cruzo en el agrio olor del clima descubierto,</div>
  <div>aún vestido de gris y sonidos amargos,</div>
  <div>y una cimera triste de abandonada espuma.</div>
  <br>
  <div>Voy, duro de pasiones, montado en mi ola única,</div>
  <div>lunar, solar, ardiente y frío, repentino,</div>
  <div>dormido en la garganta de las afortunadas</div>
  <div>islas blancas y dulces como caderas frescas.</div>
  <br>
  <div>Tiembla en la noche húmeda mi vestido de besos</div>
<div>locamente cargado de eléctricas gestiones,</div>
<div>de modo heroico dividido en sueños</div>
<div>y embriagadoras rosas practicándose en mí.</div>
<br>
<div>Aguas arriba, en medio de las olas externas,</div>
<div>tu paralelo cuerpo se sujeta en mis brazos</div>
<div>como un pez infinitamente pegado a mi alma</div>
<div>rápido y lento en la energía subceleste.</div>
</div>
              
            
!

CSS

              
                $deg: 35deg;
$total: 20;

html, body, .container {
	height: 100%;
  overflow: hidden;
}

body {
  background: rgb(0, 0, 0);
	background:
		radial-gradient(circle, rgba(255, 255, 255, .3), transparent)
	,	linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px)
	,	linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px)
	,	linear-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px)
	,	linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px)
	,		rgb(0, 10, 15);
  	box-shadow:
    inset 0 0 10em rgba(0, 0, 0, .5)
  	, 0 0 1em rgba(0, 0, 0, .8);
  font-family: 'Abril Fatface', cursive;
  font-weight: 700;
  color: #fff;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  
  > div {
    margin: 2px;
    -webkit-background-clip: text;
  	-webkit-text-fill-color: transparent;	
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/769286/clouds.jpg);
    mix-blend-mode: hue;
    background-size: auto;
    background-attachment: unset;
    background-position: 0%;
    transform: translate3d(0,0,0) rotateY($deg);
    animation: 
      swing 4s ease-in-out infinite,
      texteffect 50s;
    
    @for $i from 1 through $total {
      &:nth-of-type(#{$i}) {
        animation-delay: $i * .2s;
      }
    }
  }
}

@keyframes swing {
  50% {
    transform: translate3d(0,0,0) rotateY(-$deg);
  }
}

@keyframes texteffect {
  50% {
    background-position: 100%;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console