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 id="fan">
      <path fill="#DFE2F1" 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 id="middot">
      <circle fill="#dcdaed" cx="21" cy="21" r="4" />
    <g id="grate">
      <path opacity="0.4" fill="#202746" 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"/> 

<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>
              html {
  font-size: 16px;
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;

.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;
/* svg {
  animation: spin 1s infinite linear;
} */

@keyframes spin {
  50% {
    transform: rotate(180deg);
               function addListeners() {
     var symbolAirventRotate = document.getElementById('symbolAirventRotate');
     var bg = document.getElementById('bg');
   document.getElementById('btnMenu').addEventListener("mouseout", btn1func);
   document.getElementById('btnMenu').addEventListener("mouseover", btn2func);

   function btn1func() {
     symbolAirventRotate.setAttributeNS(null, 'dur', '1s');

   function btn2func() {
     symbolAirventRotate.setAttributeNS(null, 'dur', '0.5s');
 window.addEventListener("load", addListeners);
Loading ..................