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="app__outer">
  <div class="app">
<!--     <header class="app__header">
      <h3 class="header__title">
        DotA NFTs
      </h3>
      <svg xmlns="http://www.w3.org/2000/svg" class="header__icon" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M184 112l144 144-144 144"/></svg>
      <h3 class="header__title">
        Juggernaut
      </h3>
    </header> -->
    <div class="app__content">
      <div class="app__nft">
        <div class="nft__img">
          <img class="img" src="https://i.imgur.com/imuvXGR.png" alt="Juggernaut NFT" />
        </div>
        <h3 class="nft__title">Juggernaut</h3>
        <div class="nft__title-separator"></div>
        <div class="nft__progression">
          <h4 class="progression-current-lvl__subtitle">
            Current LvL: 1
          </h4>
          <h4 class="progression-next-lvl__subtitle">
            Next LvL: 250 XP
          </h4>
          <h4 class="progression-xp__subtitle">
            XP: 0/250
          </h4>
          <div class="progression__bar">

          </div>
        </div>
      </div>
    </div>
  </div>
</div>



              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,700,800');

/* global vars */
$font: 'Montserrat', sans-serif;
$text-color: #fff;

$gradient-circle-color: #fffa66;
$gradient-circle-color2: #ff2300;
$gradient-circle-color3: #000;

$radial-gradient: radial-gradient(circle at center, $gradient-circle-color, $gradient-circle-color2 15%, $gradient-circle-color3 65%);

$radial-gradient2: radial-gradient(circle at center, $gradient-circle-color, $gradient-circle-color2 25%, $gradient-circle-color3 65%);

$radial-gradient3: radial-gradient(circle at center, $gradient-circle-color, $gradient-circle-color2, $gradient-circle-color3 100%);

$bg-color: #000;

$linear-gradient: linear-gradient(rgba($bg-color, .5), rgba($bg-color, 1)), url("https://i.imgur.com/Ds2w822.jpg");

$border-color: #ff2300;
$app-shadow: 0 0 1.5rem $gradient-circle-color2;
$separator-shadow: 0 0 .8rem #fff;

/* reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

// reset
html,body {
    padding:0; 
    margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  background-image: $radial-gradient;
  will-change: background-image, background-position;
  background-position: 0 -25vh, 100% 0;
  background-repeat: no-repeat;
  background-color: $bg-color;
  background-blend-mode: hard-light;
  background-attachment: fixed;
  background-size: cover;
  backdrop-filter: blur(5rem);
  font-size: 1.4rem;
  font-family: $font;
  color: $text-color;
  // animation: 15s radial-gradient-anim linear infinite alternate;
}

.app__outer {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.app {
  display: flex;
  width: 39rem;
  height: 70rem;
  margin: 15vh auto 2.5vh auto;
  flex-direction: column;
  background-image: $linear-gradient;
  // background-size: cover;
  background-position: center -42%;
  background-blend-mode: soft-light;
  border-radius: 5rem;
  // border: 0.2rem solid $border-color;
  backdrop-filter: blur(.4rem);
  box-shadow: $app-shadow;
  // overflow: hidden;
  
  & .app__header {
    display: flex;
    width: 100%;
    height: 5rem;
    padding: 0 4rem;
    align-items: center;
    border-bottom: .2rem solid $border-color;
    
    & .header__title {
      font-size: 1.4rem;
      &:last-of-type {
        text-decoration: underline;
      }
    }
    & .header__icon {
      display: flex;
      width: 2rem;
      height: 2rem;
      margin: auto 1rem;
    }
  }
  & .app__content {
    display: flex;
    width: 100%;
    padding: 0 4rem;
    flex-direction: column;
    
    & .app__nft {
      display: flex;
      width: 100%;
      margin-top: -12rem;
      flex-direction: column;
      & .nft__img {
        display: flex;
        width: 100%;
        height: 50rem;
        flex-direction: column;
        will-change: transform;
        transform-style: preserve-3d;
        animation: 5s nft-float ease-in-out alternate infinite;
        & .img {
          height: 100%;
          align-self: center;
        }
      }
      & .nft__title {
        margin: -2rem 0 0 0;
        font-size: 3.5rem;
        font-weight: 600;
        text-align: center;
      }
      & .nft__title-separator {
          position: relative;
          height: 2rem;
          margin-top: 2rem;
          overflow: hidden;
          &:after {
            content: " ";
            display: flex;
            width: 100%;
            height: 2.5rem;
            margin: -2.5rem auto 0;
            border-radius: 12.5rem / 1.2rem;
            box-shadow: $separator-shadow;
          }
      }
      & .nft__progression {
        display: flex;
        width: 100%;
        min-height: 15rem;
        padding: 1rem 2rem;
        flex-direction: column;
        background-color: rgba(0, 0, 0, .5);
        border-radius: 2.5rem;
        
        & .progression-current-lvl__subtitle {
          margin-bottom: 1rem;
          font-size: 2rem;
          font-weight: 600;
        }
        & .progression-next-lvl__subtitle {
          margin-bottom: .5rem;
          font-size: 1.3rem;
          font-weight: 600;
        }
        & .progression-xp__subtitle {
          font-size: 1.3rem;
          font-weight: 600;
        }
      }
      
    }
  }
}

@keyframes nft-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -2rem, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}


// @keyframes radial-gradient-anim {
//   0% {
//     background-image: $radial-gradient;
//     background-position: 0 -30rem, 100% 0;
//   }
//   25% {
//     background-image: $radial-gradient;
//     background-position: 0 -30rem, 100% 0;
//   }
//   50%,75% {
//     background-image: $radial-gradient;
//     background-position: 0 0, 100% 0;
//   }
//   90%, 100% {
//     background-image: $radial-gradient;
//     background-position: 0 -30rem, 100% 0;
//   }
// }



              
            
!

JS

              
                
              
            
!
999px

Console