cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <svg class="strike-wrapper" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" aria-labelledby="KD NBA jersey">
  <defs>
    <filter id="outsideblur">
      <feGaussianBlur in="SourceGraphic" stdDeviation="2" result="blur" />
      <feComponentTransfer>
        <feFuncA in="blur" type="linear" slope="5" result="noalfa"/>
      </feComponentTransfer>
      <feBlend in="SourceGraphic" in2="blur" />
    </filter>
  </defs>
<polyline class="lightning" points="0, 0 10,10 11,9 15,20 14,21 16,22 18,21 20,25 19,30 22,37 19,37 26,40 45, 50 65,50 43,59 60, 64 65, 66 70, 72 70, 77 70, 74 75, 78 80, 79 81, 81 83 "></polyline>
</svg>
<svg width="1200" height="150"  >
 </svg>
 

<div class="row">

 <div class="col m6 s12">

 <section class="jersey wrapper flash" id="durant">
            

 <div class="face"></div>
 <div class="neck"></div>
   <div class="body">

 <h4 class="name">
                         <span class="char1">D</span>
                         <span class="char2">U</span>
                         <span class="char3">R</span>
                         <span class="char4">A</span>
                         <span class="char5">N</span>
                         <span class="char6">T</span>
                         </h4>

 <div class="left-shoulder"></div>
 <div class="line-left"></div>

<div class="right-shoulder"></div>
<div class="line-right"></div>
        </div>
     </section>
   </div>
 </div>
            
          
!
            
               @import  url(https://fonts.googleapis.com/css?family=Anton);
 //! Colors
 // ---------------------
 $color-blue: #2196F3;
 $color-black: #444;
 // ---------------------
 //! Mixins
 // ---------------------
 @mixin position($position, $top: null, $right: null, $bottom: null, $left: null) {
   position: $position;
   top: $top;
   right: $right;
   bottom: $bottom;
   left: $left;
 }
 
 @mixin size($width, $height) {
   width: $width;
   height: $height;
 }
 
 // ---------------------
 //! GENERAL
 // ---------------------
 body {
   overflow: hidden;
   background: black;
   font-family: Anton;
 }
 
 .wrapper {
   @include size(100px, 100px);
 }
 
 .jersey {
   width: 100%;
   position: relative;
   bottom: 200px;
   height: 100px;
   padding: 0 20px;
   display: flex;
   align-items: center;
   @media (max-width: 414px) {
     right: 30%;
   }
 }
 
 #durant {
   background: black;
   .body {
     @include size(124px, 180px);
     @include position(absolute, $left: 50%, $top: 27%);
     background: #0146ad;
     -webkit-transform: translateX(-50%);
     -ms-transform: translateX(-50%);
     transform: translateX(-50%);
     border-radius: 20px 20px 2px 2px;
     overflow: hidden;
     background-clip: padding-box;
     z-index: 1;
   }
   .char1 {
     transform: rotate(3deg);
   }
   .char2 {
     transform: rotate(10deg);
   }
   .char3 {
     transform: rotate(17deg);
   }
   .char4 {
     transform: rotate(24deg);
   }
   .char5 {
     transform: rotate(30deg);
   }
   .char6 {
     transform: rotate(36deg);
   }
   .name {
     transform: rotate(-18deg);
   }
   h4 span {
     @include position(absolute, $top: 18px, $left: 21px);
     font: 14px Monaco, MonoSpace;
     height: 172px;
     color: yellow
   }
   .neck {
     @include position(absolute, $left: 50%, $top: 28px);
     z-index: 2;
     width: 36px;
     height: 2px;
     transform: translateX(-50%);
     background: $color-black;
     border: 3px solid yellow;
     border-radius: 74% 5px;
     &::before {
       content: '35';
       color: yellow;
       font-size: 42px;
       line-height: 160px;
       @include position(absolute, $left: -2px, $top: 10px);
     }
   }
   .left-shoulder {
     @include position(absolute, $left: -27%, $top: -29.5%);
     @include size(46px, 71%);
     background: black;
     border-radius: 30%;
   }
   .right-shoulder {
     @include position(absolute, $left: 89%, $top: -29.5%);
     @include size(40px, 71%);
     background: black;
     border-radius: 30%;
   }
   .line-left {
     @include position(absolute, $top: -20.5%, $left: -41%);
     @include size(50%, 67%);
     border: solid 7px yellow;
     border-radius: 77%;
     border-bottom: transparent;
     border-left: transparent;
     border-top: transparent
   }
   .line-right {
     @include position(absolute, $left: 86%, $top: -16.5%);
     @include size(50%, 65%);
     border: solid 7px yellow;
     border-radius: 77%;
     border-bottom: transparent;
     border-right: transparent;
     border-top: transparent;
   }
 }
 
 .strike-wrapper {
   width: 100%;
   height: 210px;
 }
 
 .lightning {
   fill: none;
   stroke: rgb(255, 255, 255);
   stroke-width: 0.6;
   stroke-dasharray: 200;
   stroke-dashoffset: 0;
   animation: strike 3s infinite;
   -webkit-animation: strike 3s infinite;
   filter: url(#outsideblur)
 }

 #durant {
   -webkit-animation: fadein 10s;
   -moz-animation: fadein 10s;
   animation: fadein 10s;
 }
 
 text tspan {
   font-family: Muli;
   font-weight: 600;
   animation: flyInText 3s ease;
   -webkit-animation: flyInText 3s ease;
 }
 
 #l2 {
   animation-delay: .1s;
   -webkit-animation-delay: .1s;
 }
 
 #l3 {
   animation-delay: .2s;
   -webkit-animation-delay: .2s;
 }
 
 #l4 {
   visibility: hidden;
 }
 
 #l5 {
   animation-delay: .5s;
   -webkit-animation-delay: .5s;
 }
 
 #l6 {
   animation-delay: .5s;
   -webkit-animation-delay: .5s;
 }
 
 #l7 {
   animation-delay: .6s;
   -webkit-animation-delay: .6s;
 }
 
 #l8 {
   animation-delay: .6s;
   -webkit-animation-delay: .6s;
 }
 
 #l9 {
   animation-delay: .6s;
   -webkit-animation-delay: .6s;
 }


 @keyframes strike {
   0% {
     stroke-dashoffset: 400;
   }
   30%,
   70% {
     stroke-dashoffset: 200;
   }
   100% {
     stroke-dashoffset: 0;
     opacity: 0;
   }
 }
 
 
 @keyframes fadein {
   from {
     opacity: 0;
   }
   to {
     opacity: 1;
   }
 }

 @keyframes flyInText {
   0% {
     font-size: 50px;
     fill: white;
   }
   10% {
     font-size: 70px;
     fill: white;
   }
   40% {
     font-size: 100px;
     fill: yellow;
   }
   100% {
     font-size: 60px;
     fill: yellow;
   }
 }
            
          
!
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