Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

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="cont">
        <div class="bottom"></div>
        <div class="greengift">
            <div class="tape1"> 
                <div class="line1"></div>
                <div class="line2"></div>
                <div class="line3"></div>
                <div class="line4"></div>
            </div>
            <div class="tape2">
                <div class="line5"></div>
                <div class="line6"></div>
                <div class="line7"></div>
            </div>
            <div class="cover"></div>
            <div class="tape3"></div>
            <div class="circle"></div>
            <div class="ribbon1"></div>
            <div class="ribbon2"></div>
        </div>
        <div class="stripedgift">
            <div class="circle2"></div>
            <div class="circle3"></div>
            <div class="circle4"></div>
        </div>
        <div class="dottedgift"></div>
        <div class="redgift">
            <div class="tape4"></div>
            <div class="line10"></div>
            <div class="tape5">
                <div class="line11"></div>
                <div class="line12"></div>
            </div>
            <div class="circle5"></div>
            <div class="circle6"></div>
            <div class="circle7"></div>
        </div>
        <div class="ball">
            <div class="smolball1"></div>
            <div class="smolball2"></div>
            <div class="smolball3"></div>
            <div class="dot"></div>
            <div class="topv">.</div>
            <div class="toph"></div>
        </div>
        <div class="de1"></div>
        <div class="de2"></div>
        <div class="de3"></div>
        <div class="de4"></div>
        <div class="de5"></div>
        <div class="de6"></div>
   
              
            
!

CSS

              
                * {
    margin: 0;
    padding: 0;
  } 
:root {--border: 0.7vmin solid #3B373C}
body {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ef4c4f0a;
  }
.cont{
      width: 65vmin;
      height: 50vmin;
      position: relative;
  }
 .bottom{
      width: 68vmin;
      height: 1.2vmin;
      background-color: #3B373C;
      position: absolute;
      bottom: 0;
      border-radius: 1vmin;
      -webkit-border-radius: 1vmin;
      -moz-border-radius: 1vmin;
      -ms-border-radius: 1vmin;
      -o-border-radius: 1vmin;
}
  
 .greengift{
    width: 13vmin;
    height: 28vmin;
    background-color:#70B15E ;
    position: absolute;
    border-top: 0.8vmin solid #579b3e81;
    border-left: 0.8vmin solid #579b3ea1;
    outline: var(--border);
    left: 22.5vmin;
    bottom: 1.2vmin;

}

  .tape1{
    width: 2.1vmin;
    height: 30.9vmin;
    background-image: linear-gradient(#fdcb61 ,      #fecb5b);
    position: absolute;
    bottom: 0.01vmin;
    left: 4.5vmin;
    border-right:var(--border) ;
    border-left: var(--border) ;

}

  .tape2{
    width:14vmin ;
    height:2.1vmin ;
    background-image: linear-gradient(#faa93f , #fecb5b);
    position: absolute;
    top: 10vmin;
    left:-1vmin;
    border-top:  var(--border) ;
    border-bottom: var(--border) ;
}
  .line1, .line2, .line3, .line4{
    width: 0.2vmin;
    background-color: #3B373C;
    position: absolute;
}
  .line1{
    height: 1.5vmin;
    left: 1.3vmin;
}
  .line2{
    height: 1vmin;
    left: 0.8vmin;
}
  .line3{
    height:2.5vmin ;
    bottom: 0;
    left: 0.4vmin;
}
  .line4{
    height: 1.9vmin;
    bottom: 0;
    left: 1.1vmin;
}
  .line5, .line6, .line7{
    height:0.2vmin ;
    position: absolute;
    background-color: #3B373C;
}
  .line5{
    width: 1vmin;
    top: 0.4vmin;
}
  .line6{
    width: 2.3vmin;
    right: 0;
    top: 0.5vmin;
}
  .line7{
    width: 1.3vmin;
    right: 0;
    top: 1vmin;
}
  .cover{
    width: 15vmin;
    height: 2vmin;
    background-color:#70B15E ;
    position: absolute;
    border-top: 0.8vmin solid #ABD89D;
    border-left: 0.8vmin solid #579b3ea1;
    border-bottom: 0.8vmin solid #579B3E;
    outline: var(--border);
    border-radius: 0.1vmin;
    top: -5.2vmin;
    left: -1.9vmin;
    -webkit-border-radius: 0.1vmin;
    -moz-border-radius: 0.1vmin;
    -ms-border-radius: 0.1vmin;
    -o-border-radius: 0.1vmin;
}
  .tape3{
    width: 3.2vmin;
    height: 3.6vmin;
    background-image: linear-gradient(#fdcb61 , #fecb5b);
    position: absolute;
    top: -5.2vmin;
    left: 3.9vmin;
    border-right:  var(--border) ;
    border-left: var(--border) ;   
}
  .circle{
    width: 3.5vmin;
    height: 4.2vmin;
    background-color:#F7B45C ;
    position: absolute;
    top: -9vmin;
    left: 3.8vmin;
    border: var(--border) ;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    box-shadow: rgb(241 169 63) 0vmin 1.3vmin 0vmin -0.7vmin;
    z-index: 1;
}
  .ribbon1 {
    width: 4vmin;
    height: 5vmin;
    background-color: #F7B45C;
    position: absolute;
    top: -9.8vmin;
    transform: rotate(227deg);
    left: 7.5vmin;
    border:  var(--border);
    border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -webkit-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -webkit-transform: rotate(227deg);
    -moz-transform: rotate(227deg);
    -ms-transform: rotate(227deg);
    -o-transform: rotate(227deg);
    -moz-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -ms-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -o-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
}
  .ribbon2 {
    width: 4vmin;
    height: 5vmin;
    background-color: #F7B45C;
    position: absolute;
    top: -9.8vmin;
    left: -0.9vmin;
    transform: rotate(60deg);
    border:  var(--border);
    border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -webkit-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -moz-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -ms-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -o-border-radius: 56% 44% 100% 0% / 65% 53% 47% 35%;
    -webkit-transform: rotate(60deg);
    -moz-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    -o-transform: rotate(60deg);
}
  .line8{
    height:0.2vmin ;
    position: absolute;
    background-color: #3B373C;
    width: 2.1vmin;
    left: 0;
    top: 2vmin;
    transform: rotate(-35deg);
    -webkit-transform: rotate(-35deg);
    -moz-transform: rotate(-35deg);
    -ms-transform: rotate(-35deg);
    -o-transform: rotate(-35deg);
}
 .stripedgift{
    width: 15vmin;
    height: 7vmin;
    background-image: linear-gradient(135deg, #ef4c4e 25%, #fecb5b 25%, #fecb5b 50%, #ef4c4e 50%, #ef4c4e 75%, #fecb5b 75%, #fecb5b 100%);
    background-size: 5vmin 5vmin;
    position: absolute;
    border-top: 0.8vmin solid #eef3ec2f;
    border-left: 0.8vmin solid #1a1b1a31;
    border-right: 0.8vmin solid #1a1b1a31;
    outline:  var(--border);
    left: 5vmin;
    bottom: 1.2vmin;
    border-radius: 0.2vmin;
    -webkit-border-radius: 0.2vmin;
    -moz-border-radius: 0.2vmin;
    -ms-border-radius: 0.2vmin;
    -o-border-radius: 0.2vmin;
}
 .dottedgift{
    width: 22vmin;
    height: 10.9vmin;
    background-color: #6B9EC0;
    background-image: radial-gradient(circle, #C7DAE7 25%, transparent 0%), radial-gradient(circle, #C7DAE7 25%, transparent 0%);
    background-size: 4vmin 4vmin;
    background-position: 0 0, 10vmin 10vmin;
    position: absolute;
    border-top: 0.8vmin solid #5188a57e;
    border-left: 0.8vmin solid #5188a57e;
    outline:  var(--border);
    left: 34vmin;
    bottom: 1.2vmin;
    z-index: 3;
    border-radius: 0.2vmin;
    -webkit-border-radius: 0.2vmin;
    -moz-border-radius: 0.2vmin;
    -ms-border-radius: 0.2vmin;
    -o-border-radius: 0.2vmin;
}
 .redgift{
    width: 13vmin;
    height: 25vmin;
    background-color: #EF4C4E;
    position: absolute;
    border-top: 0.5vmin solid #DD3A43;
    border-left: 0.5vmin solid #DD3A43;
    outline: var(--border);
    left: 40vmin;
    bottom: 1.2vmin;
    z-index: 1;
    border-radius: 0.2vmin;
    -webkit-border-radius: 0.2vmin;
    -moz-border-radius: 0.2vmin;
    -ms-border-radius: 0.2vmin;
    -o-border-radius: 0.2vmin;
}
  .tape4{
    width: 1.5vmin;
    height: 14vmin;
    background-color: #EEF2FA;
    position: absolute;
    top: -0.6vmin;
    left: 4.7vmin;
    border-right: var(--border) ;
    border-left: var(--border) ;
}
  .tape5{
    width:13.5vmin ;
    height:1.5vmin ;
    background-color: #EEF2FA;
    position: absolute;
    top: 5.2vmin;
    left:-0.5vmin;
    border-top:  var(--border) ;
    border-bottom: var(--border) ;
}
  .line10{
    width: 0.2vmin;
    background-color: #3B373C;
    position: absolute;
    height: 1vmin;
    left: 7.8vmin;
    top: 11.4vmin;
}
  .line11{
    height:0.2vmin ;
    position: absolute;
    background-color: #3B373C;
    width: 2.1vmin;
    right: 0;
    top: 0.8vmin;
}
  .line12{
    height:0.2vmin ;
    position: absolute;
    background-color: #3B373C;
    width: 1.5vmin;
    left: 0.5vmin;
    top: 0.4vmin;
}
  .circle2{
    width: 5.3vmin;
    height: 2.5vmin;
    background-color:#DBA44A ;
    position: absolute;
    top: -3.9vmin;
    left: 5vmin;
    border: var(--border) ;
    border-radius: 11vmin;
    -webkit-border-radius: 11vmin;
    -moz-border-radius: 11vmin;
    -ms-border-radius: 11vmin;
    -o-border-radius: 11vmin;
    z-index: -1;
}
  .circle3{
    width: 5.3vmin;
    height: 2.9vmin;
    background-color:#DBA44A ;
    position: absolute;
    top: -4.3vmin;
    left: -0.5vmin;
    border: var(--border) ;
    border-radius: 11vmin;
    -webkit-border-radius: 11vmin;
    -moz-border-radius: 11vmin;
    -ms-border-radius: 11vmin;
    -o-border-radius: 11vmin;
    z-index: -2;
    transform: rotate(15deg);
    -webkit-transform: rotate(15deg);
    -moz-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    -o-transform: rotate(15deg);
}
  .circle4{
    width: 5.3vmin;
    height: 2.9vmin;
    background-color:#DBA44A ;
    position: absolute;
    top: -3.9vmin;
    left: 10.3vmin;
    border: var(--border) ;
    border-radius: 11vmin;
    -webkit-border-radius: 11vmin;
    -moz-border-radius: 11vmin;
    -ms-border-radius: 11vmin;
    -o-border-radius: 11vmin;
    z-index: -2;
    transform: rotate(-16deg);
    -webkit-transform: rotate(-16deg);
    -moz-transform: rotate(-16deg);
    -ms-transform: rotate(-16deg);
    -o-transform: rotate(-16deg);
}
  .circle5{
    width: 3vmin;
    height: 3vmin;
    background-color: #EDF1F9;
    border: 0.5vmin solid #3B373C ;
    border-radius: 11vmin;
    -webkit-border-radius: 11vmin;
    -moz-border-radius: 11vmin;
    -ms-border-radius: 11vmin;
    -o-border-radius: 11vmin;
    z-index: -1;
    top: -3.9vmin;
    left: 4.2vmin;
    position: absolute;
}
  .circle6{
    width: 4.5vmin;
    height: 1.9vmin;
    background-color: #EDF1F9;
    border:0.5vmin solid #3B373C ;
    border-radius: 5vmin;
    -webkit-border-radius: 5vmin;
    -moz-border-radius: 5vmin;
    -ms-border-radius: 5vmin;
    -o-border-radius: 5vmin;
    z-index: -2;
    top: -3.8vmin;
    left: 7.2vmin;
    position: absolute;
    transform: rotate(-12deg);
    -webkit-transform: rotate(-12deg);
    -moz-transform: rotate(-12deg);
    -ms-transform: rotate(-12deg);
    -o-transform: rotate(-12deg);
}
  .circle7{
    width: 4.5vmin;
    height: 1.9vmin;
    background-color: #EDF1F9;
    border:0.5vmin solid #3B373C ;
    border-radius: 5vmin;
    -webkit-border-radius: 5vmin;
    -moz-border-radius: 5vmin;
    -ms-border-radius: 5vmin;
    -o-border-radius: 5vmin;
    z-index: -2;
    top: -3.8vmin;
    left: -0.3vmin;
    position: absolute;
    transform: rotate(12deg);
    -webkit-transform: rotate(12deg);
    -moz-transform: rotate(12deg);
    -ms-transform: rotate(12deg);
    -o-transform: rotate(12deg);
}
 .ball{
    width: 5.5vmin;
    height: 5.5vmin;
    background-color:#EF4C4E ;
    border: var(--border);
    position: absolute;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    right: -1.5vmin;
    bottom: 0.9vmin;
    box-shadow:inset 0.2vmin 0.4vmin 0vmin 0px #ff8d93;
}
 .smolball1, .smolball2, .smolball3{
    width: 0.6vmin;
    height: 0.6vmin;
    background-color: #FDCA5B;
    border: var(--border);
    position: absolute;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}
 .smolball1{
    left: 0.5vmin;
    bottom: 2.7vmin;
}
 .smolball2{
    left: 1.7vmin;
    bottom: 1.2vmin;
}
 .smolball3{
    left: 3.5vmin;
    bottom: 0.6vmin;
}
 .dot{
    width: 0.9vmin;
    height: 1.3vmin;
    background-color: #FFFFFF;
    position: absolute;
    border-radius: 48%;
    -webkit-border-radius: 48%;
    -moz-border-radius: 48%;
    -ms-border-radius: 48%;
    -o-border-radius: 48%;
    left: 2.8vmin;
    bottom: 3.8vmin;
    transform: rotate(60deg);
    -webkit-transform: rotate(60deg);
    -moz-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    -o-transform: rotate(60deg);
}
 .topv{
    width: 2.1vmin;
    height: 2.5vmin;
    background-color: #3B373C;
    border-top-left-radius: 40%;
    border-top-right-radius: 40%;
    position: absolute;
    left: 4.1vmin;
    top: -2.3vmin;
    transform: rotate(33deg);
    -webkit-transform: rotate(33deg);
    -moz-transform: rotate(33deg);
    -ms-transform: rotate(33deg);
    -o-transform: rotate(33deg);
    z-index: -3;
    color: #5C5A60;
    text-align: center;
    font-weight: bolder;
}
 .toph{
    width: 1.2vmin;
    height: 3.5vmin;
    background-color: #3B373C;
    border-radius: 40% 40% 40% 40%;
    position: absolute;
    left: 4.6vmin;
    top: -3vmin;
    transform: rotate(120deg);
    -webkit-transform: rotate(120deg);
    -moz-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    -o-transform: rotate(120deg);
    z-index: -2;
    -webkit-border-radius: 40% 40% 40% 40%;
    -moz-border-radius: 40% 40% 40% 40%;
    -ms-border-radius: 40% 40% 40% 40%;
    -o-border-radius: 40% 40% 40% 40%;
}
.de1, .de2, .de3, .de4,.de5, .de6{
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    position: absolute;
    
}
.de1{
    width: 0.8vmin;
    height: 0.8vmin;
    top: 38vmin;
    border: 0.5vmin solid #FFDEC2;
}
.de2{
    width: 0.4vmin;
    height: 0.3vmin;
    top: 20vmin;
    border: 0.5vmin solid #FF7775 ;
}
.de3{
    width: 0.9vmin;
    height: 0.9vmin;
    top: 12vmin;
    left: 48vmin;
    border: 0.3vmin solid #FF7775 ;
}
.de4{
    width: 0.5vmin;
    height: 0.5vmin;
    border: 0.6vmin solid #FFA85E ;
    left: 57vmin;
    top: 10vmin;
}
.de5{
    width: 0.8vmin;
    height: 0.8vmin;
    top: 25vmin;
    left: 60vmin;
    border: 0.5vmin solid #FFDEC2;   
}
.de6{
    width: 0.5vmin;
    height: 0.5vmin;
    border: 0.4vmin solid #FFA85E ;
    left: 11vmin;
    top: 26vmin;
}
              
            
!

JS

              
                /*inspired by artwork 
 
 https://dribbble.com/shots/3173869-Christmas-Gift

*/

              
            
!
999px

Console