123

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.

            
              <!--玩-->    
<div class="playbox">
  
  <a href="#" class="playbox_a playbox_play">
    
<!--頭像-->
<svg version="1.0" class="playbox_o" xmlns="http://www.w3.org/2000/svg" width="373px" height="307px" viewBox="0 0 3730 3070" preserveAspectRatio="xMidYMid meet">
<g id="layer101"  fill="#fff" stroke="none">
<path d="M328 2755 c-72 -49 -130 -166 -114 -230 4 -15 23 -44 42 -63 l35 -35 69 7 c69 7 72 7 145 -34 41 -23 75 -47 75 -53 0 -7 7 -63 15 -125 23 -170 52 -212 148 -212 38 0 45 -4 67 -39 41 -67 124 -98 193 -72 18 7 41 1 107 -30 46 -22 86 -41 88 -43 1 -2 -17 -35 -41 -72 -50 -78 -67 -122 -67 -170 0 -31 -3 -34 -37 -39 -210 -33 -313 -138 -313 -319 0 -121 6 -133 72 -167 74 -37 194 -69 262 -69 117 0 302 -133 395 -284 22 -35 141 -121 230 -166 248 -124 504 -133 712 -24 84 44 230 184 280 268 19 31 37 56 42 56 4 0 84 -52 177 -115 187 -127 241 -149 355 -149 80 0 121 19 166 76 99 127 99 127 99 186 0 36 -7 71 -21 99 -41 84 -102 136 -360 308 -183 121 -249 170 -245 181 37 96 51 167 51 259 0 102 -11 140 -54 189 -42 47 -195 91 -366 102 l-90 7 -34 49 c-78 113 -234 222 -356 249 -27 6 -72 20 -100 31 -141 58 -190 71 -270 72 -63 0 -88 -4 -120 -21 -50 -27 -96 -75 -126 -133 l-23 -45 -7 51 c-15 120 -121 263 -236 320 -85 42 -164 51 -280 31 -54 -10 -125 -20 -159 -23 l-60 -6 -88 67 c-48 37 -92 79 -97 94 -18 45 -39 61 -83 61 -28 0 -54 -8 -78 -25z"/>
</g>
</svg>
    
 <!--圖形-->   
      <svg class="playbox_a-svg" version="1.0" xmlns="http://www.w3.org/2000/svg" width="373px" height="307px" viewBox="0 0 3730 3070" preserveAspectRatio="xMidYMid meet">

      <g id="layer101" fill="#fff" stroke="none">
      <path class="play1" d="M-1450 2878 c3 -13 20 -78 38 -145 l33 -123 175 -2 175 -3 96 -445 c52 -245 94 -448 92 -452 -2 -5 -85 -8 -184 -8 l-179 0 6 -27 c4 -16 22 -80 39 -143 l32 -115 176 -3 c173 -2 177 -3 182 -25 23 -97 105 -492 105 -503 0 -12 -32 -14 -185 -14 -102 0 -185 -3 -185 -7 0 -3 17 -68 37 -145 l37 -138 572 0 571 0 -37 143 -37 142 -183 5 -183 5 -52 241 c-29 133 -55 253 -59 268 l-6 26 196 0 c152 0 195 3 191 13 -3 6 -20 72 -38 145 l-33 132 -187 0 c-170 0 -188 2 -193 18 -12 40 -186 857 -186 874 0 17 12 18 194 18 l194 0 -37 143 -37 142 -573 3 -573 2 6 -22z"/>
      <path class="play2" d="M1310 4895 c0 -3 171 -269 380 -590 209 -321 380 -589 380 -595 0 -7 -73 -10 -219 -10 l-220 0 9 -27 c5 -16 23 -81 41 -145 l31 -118 864 0 c685 0 864 3 864 13 0 6 -11 55 -25 107 -14 52 -30 112 -36 133 l-10 37 -229 0 c-180 0 -230 3 -230 13 0 7 38 273 85 591 47 317 85 582 85 587 0 5 -87 9 -205 9 -204 0 -205 0 -210 -22 -3 -13 -41 -264 -85 -558 -44 -294 -83 -548 -87 -564 -8 -27 -35 12 -383 557 l-375 586 -212 1 c-117 0 -213 -2 -213 -5z"/>
     <path class="play3" d="M3600 848 c3 -13 20 -78 38 -145 l33 -123 866 0 866 0 -36 145 -35 145 -869 0 -869 0 6 -22z"/>
      </g>
    </svg>
  </a>
  
</div>

            
          
!
            
              .playbox {
  margin: 50px auto;
  width: 60px;
}
.playbox_o{
  display: block;
  width: 50px;
  height: 50px;
  position: absolute;
  transition: opacity .5s ease-in-out;
}

.playbox_a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 4px;
  color: #fff;
  background-color: hsl(0,0%,70%);
  border-radius: 50%;
  transition-duration: 0.5s;
}

/*icon背景*/
.playbox_play:hover {
  background: #03a9f4;
}
.playbox_a:hover {
  transform: scale(1.5);
}

/*icon圖形*/
.playbox_play:hover .playbox_a-svg {
	transform: rotate(350deg) scale(1.3);
}
/*頭像*/
.playbox_play:hover .playbox_o {
	opacity: 0;
  transform: scale(.9);
}
.playbox_a-svg{
  width: 60px;
  height: 60px;
	transition: transform .5s ease-out;
}

/*icon路徑變形*/
.playbox_a-svg:hover path.play1 {
  d: path("M84 2878 c3 -13 20 -78 38 -145 l33 -123 175 -2 175 -3 96 -445 c52 -245 94 -448 92 -452 -2 -5 -85 -8 -184 -8 l-179 0 6 -27 c4 -16 22 -80 39 -143 l32 -115 176 -3 c173 -2 177 -3 182 -25 23 -97 105 -492 105 -503 0 -12 -32 -14 -185 -14 -102 0 -185 -3 -185 -7 0 -3 17 -68 37 -145 l37 -138 572 0 571 0 -37 143 -37 142 -183 5 -183 5 -52 241 c-29 133 -55 253 -59 268 l-6 26 196 0 c152 0 195 3 191 13 -3 6 -20 72 -38 145 l-33 132 -187 0 c-170 0 -188 2 -193 18 -12 40 -186 857 -186 874 0 17 12 18 194 18 l194 0 -37 143 -37 142 -573 3 -573 2 6 -22z");
  transition: 1s;
}

.playbox_a-svg:hover path.play2 {
  d: path("M1310 2895 c0 -3 171 -269 380 -590 209 -321 380 -589 380 -595 0 -7 -73 -10 -219 -10 l-220 0 9 -27 c5 -16 23 -81 41 -145 l31 -118 864 0 c685 0 864 3 864 13 0 6 -11 55 -25 107 -14 52 -30 112 -36 133 l-10 37 -229 0 c-180 0 -230 3 -230 13 0 7 38 273 85 591 47 317 85 582 85 587 0 5 -87 9 -205 9 -204 0 -205 0 -210 -22 -3 -13 -41 -264 -85 -558 -44 -294 -83 -548 -87 -564 -8 -27 -35 12 -383 557 l-375 586 -212 1 c-117 0 -213 -2 -213 -5z");
  transition: 1s;
}

.playbox_a-svg:hover path.play3 {
  d: path("M1804 848 c3 -13 20 -78 38 -145 l33 -123 866 0 866 0 -36 145 -35 145 -869 0 -869 0 6 -22z");
  transition: 1s;
}


            
          
!
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.

Console