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 class="sign">
    <div class="welcome">
      <span>W</span>
      <span>E</span>
      <span>L</span>
      <span>C</span>
      <span>O</span>
      <span>M</span>
      <span>E</span>
    </div>
    <div class="top-line">TO <span>Fabulous</span></div>
    <div class="vegas">LAS VEGAS</div>
    <div class="bottom-line">NEVADA</div>
  </div>  
</div>

              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Nothing+You+Could+Do&display=swap');

*, *::before, *::after { box-sizing: border-box; margin:0; padding: 0}
.sign{
  width: 40rem;
  aspect-ratio: 1.6/1;
  position: relative;
  text-align: center;
  font-family: sans-serif;
  padding-top: 3.25rem;
  filter: drop-shadow(0 0 20px hsl(0 50% 70%)) drop-shadow(0 0 40px hsl(0 0% 0%));
  &::before{
    content: "";
    position: absolute;
    height: 95%;
    aspect-ratio: 1/1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewY(-26.6deg) skewX(45deg);
    box-shadow: 
      -3px 6px 4px hsl(0 0% 0% / .5),
      0 0 0 8px hsl(50 100% 45%) ;
    border: 1rem solid hsl(50 100% 50%);
    border-radius: 30% 2% 30% 2%;
    background-color: white;
    z-index: -1;
  }
  &::after{
    content: "";
    position: absolute;
    height: 95%;
    aspect-ratio: 1/1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.08, 1.1) skewY(-26.6deg) skewX(45deg);
    background-image:
      radial-gradient(100% 100%, yellow 20%, white 25%, red 30%, transparent 50%);
    background-size: 15px 15px;
    background-repeat: space; 
    z-index: -2;
    border-radius: 32% 2% 32% 2%;
  }
  >.welcome{
    width: fit-content;
    display: grid;
    grid-auto-flow: column;
    font-size: 2rem;
    font-family: sans-serif;
    font-weight: 600;
    color: hsl(50 100% 50%);
    text-shadow: 2px 3px hsl(0 0% 0% / .75);
    margin-inline: auto;
    margin-bottom: 1.5rem;
    > span {
      width: 4rem;
      height: 4rem;
      padding: 0.5rem;
      border-radius: 50%;
      background-color: hsl(0 0% 95%);
      background-image: 
        radial-gradient(circle, 
          hsl(0 100% 60%) 50%, 
          hsl(0 10% 100%) 80%);
      display: grid;
      place-items: center;
      box-shadow: 
        inset 2px 2px 3px 1px hsl(50 70% 50%),
        2px 4px 6px hsl(50 70% 40%),
        2px 4px 0 0 hsl(50 70% 10%),
        4px 8px 6px 4px hsl(0 0% 0% / .5)
    }
  }
  .top-line, .bottom-line { color: hsl(225 70% 50%); font-weight: 600}
  .top-line {
    font-size: 2.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    > span {
      font-size: 3.5rem;;
      -webkit-text-stroke: 4px currentColor;
      letter-spacing: 0.2ch;
      line-height: 0.5;
      font-family: 'Nothing You Could Do', cursive;
    }
  }
  .bottom-line {
    font-size: 2.5rem;
    font-weight: 600
  }
  .vegas { 
    color: red;
    font-size: 5rem;
    font-weight: 600;
  }
}

.container {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  background-color: hsl(0 0% 0% / .5)
}
html {
  color-scheme: dark
}
body {
  background-image: url(https://images.pexels.com/photos/2837909/pexels-photo-2837909.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  
}
              
            
!

JS

              
                
              
            
!
999px

Console