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

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="hover"></div>
<svg class="avatar" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
  <g fill="#C6C5CB">
    <path d="M345.224,362.245l-0.302,106.47c-0.004,1.635-1.08,3.268-3.228,4.516 c-4.319,2.51-11.343,2.511-15.693,0c-2.189-1.264-3.282-2.923-3.278-4.58l0.302-106.47c-0.004,1.656,1.089,3.315,3.278,4.58 c4.35,2.511,11.375,2.51,15.693,0C344.144,365.512,345.22,363.88,345.224,362.245z"/>
    <path d="M341.948 357.669c4.35 2.511 4.37 6.581.048 9.092-4.319 2.51-11.343 2.511-15.693 0-4.35-2.511-4.373-6.583-.054-9.092C330.57 355.158 337.599 355.158 341.948 357.669zM500.373 273.294l-.302 106.47c-.004 1.635-1.08 3.268-3.228 4.516-4.319 2.51-11.343 2.511-15.693 0-2.189-1.264-3.282-2.923-3.278-4.58l.302-106.47c-.004 1.656 1.089 3.315 3.278 4.58 4.35 2.511 11.375 2.509 15.693 0C499.294 276.561 500.369 274.928 500.373 273.294z"/>
    <path d="M497.099 268.717c4.35 2.511 4.37 6.581.048 9.092-4.319 2.51-11.343 2.511-15.693 0-4.35-2.511-4.373-6.583-.054-9.092C485.72 266.206 492.749 266.206 497.099 268.717zM38.104 185.096l-.302 106.47c-.004 1.635-1.08 3.268-3.228 4.516-4.319 2.51-11.343 2.511-15.693 0-2.189-1.264-3.282-2.923-3.278-4.58l.302-106.47c-.004 1.656 1.089 3.315 3.278 4.58 4.35 2.511 11.375 2.51 15.693 0C37.024 188.364 38.1 186.731 38.104 185.096z"/>
    <path d="M34.829,180.52c4.35,2.511,4.37,6.581,0.048,9.092c-4.319,2.51-11.343,2.511-15.693,0 c-4.35-2.511-4.373-6.583-0.054-9.092C23.451,178.009,30.479,178.009,34.829,180.52z"/>
  </g>
  <g fill="#40A559">
    <path d="M505.532,227.79l-37.554-21.682c-1.802-1.041-3.437-1.137-4.617-0.451l-9.428,5.478l0.014-6.765 c0.01-3.877-2.715-8.597-6.089-10.546L234.571,70.577c-1.698-0.98-3.236-1.071-4.347-0.425l-9.802,5.697l0.015-5.189 c0.011-4.117-2.88-9.131-6.462-11.2l-37.56-21.685c-1.801-1.04-3.432-1.136-4.611-0.451L2.212,135.879 c0.003-0.002,0.007-0.003,0.01-0.005c-1.171,0.675-1.898,2.117-1.904,4.17L0,252.243c-0.011,4.11,2.88,9.124,6.463,11.193 l37.56,21.685c1.918,1.108,3.639,1.136,4.831,0.3c-0.072,0.051-0.141,0.108-0.217,0.151l5.444-3.164 c0.689,5.228,4.318,11.011,8.718,13.551l216.449,124.967c2.623,1.514,4.977,1.557,6.608,0.418 c-0.096,0.067-0.187,0.142-0.288,0.201l5.999-3.478l-0.007,2.507c-0.011,4.11,2.886,9.128,6.468,11.196l37.554,21.682 c1.918,1.108,3.64,1.137,4.834,0.302c-0.071,0.05-0.14,0.106-0.215,0.149l169.593-98.557c1.164-0.676,2.204-2.114,2.21-4.155 V238.994C512.011,234.877,509.114,229.859,505.532,227.79z M3.721,135.448c-0.086,0.004-0.166,0.021-0.249,0.03 C3.556,135.468,3.636,135.452,3.721,135.448z M2.683,135.657c-0.074,0.028-0.143,0.067-0.215,0.1 C2.54,135.724,2.609,135.685,2.683,135.657z M3.185,135.514c-0.082,0.017-0.157,0.044-0.236,0.067 C3.028,135.559,3.103,135.53,3.185,135.514z M4.038,135.454c0.085,0.002,0.166-0.002,0.252,0.006 C4.204,135.452,4.122,135.456,4.038,135.454z M4.645,135.514c0.082,0.014,0.16,0.02,0.242,0.038 C4.804,135.534,4.726,135.527,4.645,135.514z M5.286,135.663c0.075,0.022,0.148,0.038,0.225,0.064 C5.435,135.701,5.361,135.686,5.286,135.663z M5.96,135.907c0.066,0.028,0.131,0.048,0.197,0.079 C6.091,135.955,6.026,135.935,5.96,135.907z M49.041,285.29c0.072-0.059,0.137-0.13,0.204-0.195 C49.177,285.161,49.113,285.231,49.041,285.29z M49.414,284.931c0.064-0.071,0.118-0.154,0.177-0.231 C49.532,284.777,49.477,284.86,49.414,284.931z M50.492,282.154c0.023-0.236,0.034-0.483,0.036-0.739 C50.526,281.671,50.514,281.917,50.492,282.154z M49.738,284.505c0.055-0.085,0.101-0.18,0.15-0.272 C49.84,284.325,49.794,284.42,49.738,284.505z M50.012,284.012c0.046-0.099,0.084-0.209,0.124-0.315 C50.096,283.802,50.058,283.913,50.012,284.012z M50.23,283.454c0.039-0.119,0.067-0.25,0.098-0.377 C50.297,283.205,50.269,283.335,50.23,283.454z M50.391,282.835c0.028-0.138,0.045-0.287,0.064-0.435 C50.435,282.548,50.419,282.697,50.391,282.835z M286.119,421.16c0.096-0.078,0.183-0.173,0.274-0.261 C286.302,420.987,286.216,421.081,286.119,421.16z M286.63,420.669c0.087-0.097,0.162-0.21,0.242-0.317 C286.792,420.459,286.717,420.572,286.63,420.669z M288.106,416.87c0.031-0.324,0.048-0.661,0.049-1.012 C288.153,416.208,288.136,416.545,288.106,416.87z M287.074,420.086c0.075-0.116,0.139-0.247,0.207-0.372 C287.213,419.84,287.149,419.97,287.074,420.086z M287.448,419.411c0.065-0.137,0.116-0.288,0.171-0.435 C287.564,419.123,287.513,419.275,287.448,419.411z M287.748,418.65c0.052-0.163,0.091-0.341,0.134-0.513 C287.839,418.309,287.8,418.487,287.748,418.65z M287.969,417.801c0.04-0.2,0.065-0.414,0.092-0.626 C288.033,417.387,288.008,417.602,287.969,417.801z M340.602,453.621c0.071-0.059,0.135-0.128,0.202-0.192 C340.737,453.494,340.673,453.563,340.602,453.621z M340.975,453.263c0.062-0.07,0.116-0.15,0.173-0.227 C341.092,453.112,341.038,453.193,340.975,453.263z M342.054,450.488c0.023-0.237,0.034-0.483,0.036-0.739 C342.088,450.005,342.077,450.251,342.054,450.488z M341.3,452.837c0.055-0.086,0.102-0.182,0.153-0.273 C341.403,452.655,341.356,452.752,341.3,452.837z M341.574,452.344c0.048-0.102,0.087-0.216,0.129-0.326 C341.661,452.128,341.622,452.242,341.574,452.344z M341.792,451.788c0.039-0.118,0.066-0.248,0.097-0.373 C341.859,451.54,341.831,451.669,341.792,451.788z M341.953,451.168c0.027-0.138,0.044-0.285,0.064-0.432 C341.998,450.882,341.982,451.03,341.953,451.168z"/>
    <path d="M213.975,59.46l-37.56-21.685c-1.801-1.04-3.432-1.136-4.611-0.451L2.212,135.879 c1.179-0.684,2.81-0.588,4.611,0.451l37.56,21.686c3.583,2.069,6.474,7.083,6.462,11.2l-0.318,112.198 c-0.006,2.043-0.727,3.482-1.892,4.158l169.592-98.557c1.164-0.676,1.886-2.115,1.892-4.158l0.318-112.198 C220.449,66.543,217.558,61.529,213.975,59.46z"/>
  </g>
  <path d="M44.382,158.017c3.583,2.069,6.474,7.083,6.462,11.2l-0.318,112.198	c-0.011,4.11-2.922,5.775-6.504,3.706L6.463,263.436c-3.583-2.069-6.474-7.083-6.462-11.193l0.318-112.198	c0.011-4.117,2.922-5.782,6.504-3.714L44.382,158.017z" fill="#4DBA69"/>
  <path d="M451.974 303.858l-47.486 27.596c1.097-.637 1.778-1.995 1.784-3.926l47.486-27.596C453.751 301.864 453.071 303.221 451.974 303.858zM447.858 193.825L234.571 70.577c-1.698-.98-3.236-1.071-4.347-.425l-47.486 27.596c1.111-.646 2.649-.555 4.347.425L400.371 221.42c3.374 1.948 6.099 6.67 6.089 10.546l-.19 95.563 47.485-27.596.19-95.563C453.958 200.494 451.232 195.773 447.858 193.825z" fill="#40A559"/>
  <path d="M400.373,221.421c3.374,1.948,6.099,6.67,6.089,10.546l-0.19,95.563	c-0.011,3.884-2.754,5.447-6.128,3.499L186.856,207.782c-3.374-1.948-6.099-6.67-6.089-10.552l0.19-95.563	c0.011-3.877,2.754-5.44,6.128-3.492L400.373,221.421z" fill="#4DBA69"/>
  <g fill="#40A559">
    <path d="M406.89,351.192l-121.325,70.354c1.593-0.926,2.581-2.893,2.589-5.688l121.325-70.354 C409.47,348.299,408.483,350.266,406.89,351.192z"/>
    <path d="M288.25 382.118L409.574 311.764 409.479 345.504 288.154 415.858z"/>
  </g>
  <path d="M400.724,296.434l-216.45-124.968c-2.466-1.424-4.699-1.556-6.312-0.619L56.637,241.202	c1.613-0.937,3.846-0.806,6.312,0.619l216.449,124.967c4.904,2.832,8.867,9.696,8.851,15.331l121.325-70.354	C409.591,306.13,405.627,299.265,400.724,296.434z" fill="#65C27C"/>
  <path d="M279.398,366.787c4.904,2.832,8.867,9.696,8.851,15.331l-0.096,33.74	c-0.016,5.628-4.005,7.9-8.909,5.07L62.796,295.961c-4.904-2.832-8.861-9.692-8.845-15.32l0.096-33.74	c0.016-5.635,3.999-7.912,8.903-5.08L279.398,366.787z" fill="#4DBA69"/>
  <path d="M509.79 355.347l-169.593 98.557c1.164-.676 1.886-2.114 1.892-4.155L512 351.192C511.994 353.233 510.954 354.67 509.79 355.347zM505.532 227.79l-37.554-21.682c-1.802-1.041-3.437-1.137-4.617-.451l-169.592 98.557c1.18-.685 2.814-.589 4.617.451l37.554 21.682c3.583 2.069 6.479 7.087 6.468 11.203l-.318 112.198L512 351.192V238.994C512.011 234.877 509.114 229.859 505.532 227.79z" fill="#40A559"/>
  <path d="M335.939,326.347c3.583,2.069,6.479,7.087,6.468,11.203l-0.318,112.198	c-0.011,4.11-2.928,5.771-6.511,3.703l-37.554-21.682c-3.583-2.069-6.48-7.086-6.468-11.196l0.318-112.198	c0.011-4.117,2.928-5.778,6.511-3.71L335.939,326.347z" fill="#4DBA69"/>
</svg>

              
            
!

CSS

              
                html,
body,
.avatar {
  position: absolute;
  width: 100%;
  height: 100%;
}
body {
  background: -webkit-linear-gradient(335deg, #00ced1, #191970) no-repeat fixed;
  background: linear-gradient(115deg, #00ced1, #191970) no-repeat fixed;
}
.avatar {
  z-index: 800;
}
.avatar path {
  stroke: #e1afff;
  stroke-width: 0.15;
  -webkit-transform-origin: center center;
          transform-origin: center center;
  -webkit-transition: all 6s ease;
  transition: all 6s ease;
  -webkit-transform: translate(0);
          transform: translate(0);
}
.avatar path:nth-of-type(4n+1) {
  -webkit-animation: p1 3s ease 1;
          animation: p1 3s ease 1;
}
.avatar path:nth-of-type(4n+2) {
  -webkit-animation: p2 3s ease 1;
          animation: p2 3s ease 1;
}
.avatar path:nth-of-type(4n+3) {
  -webkit-animation: p3 3s ease 1;
          animation: p3 3s ease 1;
}
.avatar path:nth-of-type(4n+4) {
  -webkit-animation: p4 3s ease 1;
          animation: p4 3s ease 1;
}
.hover {
  position: absolute;
  width: 40%;
  height: 40vw;
  top: 50%;
  left: 30%;
  margin-top: -20vw;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  background: rgba(0,0,0,0);
  -webkit-animation: waitforit 0 ease-in 3s 1 forwards;
          animation: waitforit 0 ease-in 3s 1 forwards;
}
.hover:hover + .avatar path:nth-of-type(4n+1) {
  -webkit-transform: translate(800%, 400%) rotate(-690deg) translateZ(0);
          transform: translate(800%, 400%) rotate(-690deg) translateZ(0);
}
.hover:hover + .avatar path:nth-of-type(4n+2) {
  -webkit-transform: translate(-700%, 600%) rotate(-720deg) translateZ(0);
          transform: translate(-700%, 600%) rotate(-720deg) translateZ(0);
}
.hover:hover + .avatar path:nth-of-type(4n+3) {
  -webkit-transform: translate(-900%, -500%) rotate(-820deg) translateZ(0);
          transform: translate(-900%, -500%) rotate(-820deg) translateZ(0);
}
.hover:hover + .avatar path:nth-of-type(4n+4) {
  -webkit-transform: translate(700%, -800%) rotate(-950deg) translateZ(0);
          transform: translate(700%, -800%) rotate(-950deg) translateZ(0);
}
@-webkit-keyframes p1 {
  0% {
    -webkit-transform: translate(-300%, -700%) rotate(520deg) translateZ(0);
            transform: translate(-300%, -700%) rotate(520deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@keyframes p1 {
  0% {
    -webkit-transform: translate(-300%, -700%) rotate(520deg) translateZ(0);
            transform: translate(-300%, -700%) rotate(520deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@-webkit-keyframes p2 {
  0% {
    -webkit-transform: translate(400%, -900%) rotate(850deg) translateZ(0);
            transform: translate(400%, -900%) rotate(850deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@keyframes p2 {
  0% {
    -webkit-transform: translate(400%, -900%) rotate(850deg) translateZ(0);
            transform: translate(400%, -900%) rotate(850deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@-webkit-keyframes p3 {
  0% {
    -webkit-transform: translate(500%, 900%) rotate(325deg) translateZ(0);
            transform: translate(500%, 900%) rotate(325deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@keyframes p3 {
  0% {
    -webkit-transform: translate(500%, 900%) rotate(325deg) translateZ(0);
            transform: translate(500%, 900%) rotate(325deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@-webkit-keyframes p4 {
  0% {
    -webkit-transform: translate(-500%, 900%) rotate(748deg) translateZ(0);
            transform: translate(-500%, 900%) rotate(748deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@keyframes p4 {
  0% {
    -webkit-transform: translate(-500%, 900%) rotate(748deg) translateZ(0);
            transform: translate(-500%, 900%) rotate(748deg) translateZ(0);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@-webkit-keyframes waitforit {
  0% {
    display: none;
  }
  100% {
    display: block;
  }
}
@keyframes waitforit {
  0% {
    display: none;
  }
  100% {
    display: block;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console