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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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 version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 42 42" style="display: none">
  <symbol id="AirventIcon" viewport="0 0 42 42" width="42" height="42">
    <g id="bg">
      <circle fill="#ffffff" cx="21" cy="21" r="17" />
    </g>
    <g id="fan">
      <path fill="#c2c5d6" d="M34.09,19.289c-2.55-1.46-5.265-0.164-7.939-0.539c-3.75-0.425-3.925-3.175-3.96-3.698 c-0.122-1.825,0.716-3.534,1.51-4.477C25.825,8.05,29.25,8.15,28.301,7c-0.544-0.658-3.75-2-7.3-2c-2.4,0-7.914,1.8-8,5.5 c-0.05,2.15,1.3,3.6,3.15,6.5c1.794,2.813,0.845,6.527-4,6.9c-4.55,0.35-6.136-3.886-6.926-2.25 c-0.371,0.769,0.136,4.248,1.905,7.325c1.196,2.081,5.471,6.058,8.755,4.194c3.832-2.175,3.915-11.536,10.416-7.72 c2.393,1.405,3.133,4.584,2.633,8.05c-0.007,0.047,0,0.867,0.574,0.801c0.848-0.098,3.602-2.257,5.369-5.335 C36.071,26.884,37.25,21.101,34.09,19.289z"
      />
      <!-- <animateTransform id="symbolAirventRotate" attributeName="transform" type="rotate" from="0 21 21" to="360 21 21" begin="0s" dur="2s" repeatCount="indefinite" /> -->
    </g>
    <g id="middot">
      <circle fill="#dcdaed" cx="21" cy="21" r="4" />
    </g>
  </symbol>
</svg>

<button class="btn btn-menu" id="btnMenu" style="display:inline-block;-webkit-appearance:none;background-image:none;background-color:transparent;border:1px solid transparent">
  <svg class="shape-airvent" viewBox="0 0 42 42" width="0" height="0" fill="transparent">
    <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#AirventIcon"></use>
  </svg>
</button>
            
          
!
            
              html {
  font-size: 16px;
}

html,
body {
  min-heigth: 100%;
  background-color: #f5f7ff;
}

body {
  font: 100%/1.5 sans-serif;
  margin: 0;
  box-sizing: border-box;
}

svg {
  max-width: 100%;
}

.btn {
  color: inherit;
  font: inherit;
  margin: 1em;
  text-transform: none;
  overflow: visible;
  outline: 0;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.3;
  box-sizing: inherit;
  display: inline-block;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid transparent;
}

.btn-menu {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  position: relative;
  width: 42px;
  height: 42px;
  /* overflow: hidden; */
}

.btn-menu:after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  bottom: 0;
  left: -1px;
  width: 72px;
  height: 72px;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 57 70'%3E%3Cg%3E%3Cpath opacity='0.4' fill='rgb(32, 39, 70)' d='M40.5,3c-0.035-0.243-0.229-0.729-0.5-1s-0.727-0.443-1-0.5C35.554,0.783,21.995-0.008,21,0 C19.98,0.009,6.462,0.538,3,1.5C2.848,1.542,2.271,1.729,2,2S1.521,2.899,1.5,3C0.788,6.4,0.001,20.005,0,21 c-0.001,1.021,0.35,15.384,1.3,18c0.153,0.422,0.534,0.867,0.7,1c0.133,0.117,0.727,0.419,1,0.5c2.733,0.816,16.98,1.494,18,1.5 c1.008,0.006,14.75-0.688,18-1.5c0.272-0.068,0.729-0.229,1-0.5s0.474-0.822,0.5-1C41,35.601,42,22.008,42,21S41,6.425,40.5,3z M30,28H12v-2h18V28z M30,22H12v-2h18V22z M30,16H12v-2h18V16z'/%3E%3C/g%3E%3C/svg%3E") 0 0 no-repeat;
}

.btn-menu:hover {
  cursor: pointer;
}

.shape-airvent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 42px;
  animation: spin 1s infinite linear forwards;
  z-index: 1;
}

.btn-menu:hover .shape-airvent {
  animation-duration: .4s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn {
  color: inherit;
  font: inherit;
  margin: 1em;
  text-transform: none;
  overflow: visible;
  outline: 0;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.3;
  box-sizing: inherit;
}

.btn-menu {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  position: relative;
  width: 42px;
  height: 42px;
}

.btn-menu:hover {
  cursor: pointer;
}

.shape-airvent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 42px;
}
            
          
!
999px
Loading ..................

Console