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

              
                .imgContainer
  img.wave(src="https://i.pinimg.com/originals/64/91/54/6491542a239217a7d44bfba368cd06c8.png", alt="")
  img.bottle(src="https://i.pinimg.com/originals/67/19/71/6719713708a3a22081b18e9a520c85e8.png", alt="")
  img.wave.delay(src="https://i.pinimg.com/originals/64/91/54/6491542a239217a7d44bfba368cd06c8.png", alt="")
  img.wave.delay(src="https://i.pinimg.com/originals/64/91/54/6491542a239217a7d44bfba368cd06c8.png", alt="")
h1 Loading...
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Lily+Script+One&display=swap')
html, body
  padding: 0
  margin: 0
body
  display: flex
  justify-content: center
  align-items: center
  flex-direction: column
  width: 100%
  height: 100vh
  background-color: #ddd
h1 
  font-size: 2em
  font-family: 'Lily Script One'
  color: #505e77
  letter-spacing: 7px
.imgContainer
  position: relative
  width: 200px
  height: 220px
  overflow: hidden
  img.bottle
    width: 50%
    position: absolute
    left: 50%
    transform: translate(-50%, 0)
    bottom: 18px
    animation: floating 1.75s ease-in-out infinite alternate
  img.wave
    animation: wave 2.3s linear infinite
    animation-delay: -0.2s
    position: absolute
    bottom: 0
    width: 200%
    &.delay
      animation-duration: 3.5s
@keyframes wave
  0%
    transform: translateX(0%)
  100%
    transform: translateX(-50%)
@keyframes floating
  from
    transform: translate(-50%,10px)
  to
    transform: translate(-50%,-10px)
              
            
!

JS

              
                
              
            
!
999px

Console