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.

            
              <button>
  <svg viewBox="0 0 426 281" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <defs>
        <linearGradient x1="13.9997228%" y1="2.57255069%" x2="94.1909869%" y2="88.9652401%" id="linearGradient-1">
            <stop stop-color="#DCCE30" offset="0%"></stop>
            <stop stop-color="#FFFFFF" offset="29.4928965%"></stop>
            <stop stop-color="#FFFFFF" offset="33.0159198%"></stop>
            <stop stop-color="#CAA822" offset="50.5361029%"></stop>
            <stop stop-color="#DAC366" offset="82.618109%"></stop>
            <stop stop-color="#FFFFFF" offset="85.2989273%"></stop>
            <stop stop-color="#FFFFFF" offset="100%"></stop>
        </linearGradient>
    </defs>
    <g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-opacity="0.467221467">
        <g class="filled-layer" transform="translate(10.000000, 1.000000)" fill="url(#linearGradient-1)" stroke="#5B5235" stroke-width="2">
            <path d="M114.540246,0.896698569 L114.540246,2.12829483 L103.102589,10.3584877 L103.102589,233.052269 L173.034294,2.12473892 L229.952647,2.12473892 L302.025512,229.977703 L303.146257,233.052269 L303.146257,12.0957365 L293.094152,3.05270864 L293.094152,1 L405.024687,1 L405.024687,4.0295675 L396.044532,11.0669593 L396.044532,248.925067 L366.057913,278.993572 L45.1090008,278.993572 L11.0843822,256.023617 L11.0843822,10.371546 L0,2.34423704 L0,0.896698569 L114.540246,0.896698569 Z M111.983917,260.086042 L111.983917,256.085386 L143.0771,155.044943 L228.995467,155.044943 L263.064289,257.048072 L263.064289,260.086042 L111.983917,260.086042 Z M148.016431,135.057699 L221.013363,135.057699 L221.013363,132.072591 L180.531181,20.0408117 L148.016431,132.072591 L148.016431,135.057699 Z" id="Path"></path>
        </g>
        <g class="line-layer" transform="translate(10.000000, 1.000000)" fill="#FFFFFF" stroke="#5B5235" stroke-width="2">
            <path d="M114.540246,0.896698569 L114.540246,2.12829483 L103.102589,10.3584877 L103.102589,233.052269 L173.034294,2.12473892 L229.952647,2.12473892 L302.025512,229.977703 L303.146257,233.052269 L303.146257,12.0957365 L293.094152,3.05270864 L293.094152,1 L405.024687,1 L405.024687,4.0295675 L396.044532,11.0669593 L396.044532,248.925067 L366.057913,278.993572 L45.1090008,278.993572 L11.0843822,256.023617 L11.0843822,10.371546 L0,2.34423704 L0,0.896698569 L114.540246,0.896698569 Z M111.983917,260.086042 L111.983917,256.085386 L143.0771,155.044943 L228.995467,155.044943 L263.064289,257.048072 L263.064289,260.086042 L111.983917,260.086042 Z M148.016431,135.057699 L221.013363,135.057699 L221.013363,132.072591 L180.531181,20.0408117 L148.016431,132.072591 L148.016431,135.057699 Z" id="Path"></path>
        </g>
    </g>
</svg>
</button>
            
          
!
            
              @import url("https://fonts.googleapis.com/css?family=Exo:900");

button {
  width: 180px;
  display: block;
  margin: 0 auto;
  margin-top: 120px;
  background: #ffffff;
  transition: background 0.3s;
  position: relative;
  border: none;
  .line-layer {
    opacity: 1;
    transition: opacity 0.3s;
  }

  &::before,
  &::after {
    font-family: "Exo", sans-serif;
    color: #e41e12;
    font-size: 30px;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    opacity: 0;
  }

  &::before {
    content: "PLUS";
  }
  &::after {
    content: "ULTRA";
  }

  &:hover {
    //background: #4258D2;
    .line-layer {
      opacity: 0;
    }
  }

  &:focus {
    outline: none;
    &::before {
      animation-duration: 1s;
      animation-name: plus-jump;
    }
    &::after {
      animation-delay: 0.25s;
      animation-duration: 1s;
      animation-name: ultra-jump;
    }
  }
}

@keyframes plus-jump {
  0% {
    opacity: 0;
    top: 0;
  }
  50% {
    opacity: 1;
    top: -75px;
  }

  75% {
    opacity: 1;
    top: -75px;
  }

  100% {
    opacity: 0;
    top: -90px;
  }
}

@keyframes ultra-jump {
  0% {
    opacity: 0;
    top: 0;
  }
  50% {
    opacity: 1;
    top: -50px;
  }

  75% {
    opacity: 1;
    top: -50px;
  }

  100% {
    opacity: 0;
    top: -90px;
  }
}

            
          
!
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