Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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="row">
  <div class="inner">
    <h1>Pulsating Sonar icon </h1>
    <p>Watch how it pulses, so fancy</p>
     <div class="pulse-icon">
       <div class="icon-wrap">
         <i class="icon fa fa-wifi" aria-hidden="true"></i>
       </div>
       <div class="elements">
         <div class="circle circle-outer"></div>
         <div class="circle circle-inner"></div>
         <div class="pulse pulse-1"></div>
         <div class="pulse pulse-2"></div>
         <div class="pulse pulse-3"></div>
       </div>
    </div>
    
  </div>
</div>
              
            
!

CSS

              
                
*{
  box-sizing: border-box;
}

body{
  background: #6A1B9A;
  background: linear-gradient(-180deg , #6A1B9A 0%, #7E57C2 100%);
  overflow; hidden;
  font-family: 'Montserrat', sans-serif;
  background-attachment: fixed;
}
h1{
  color: #fff;
  text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.25);
}
p{
  margin-bottom: 70px;
  color: #eee;
}
.row{
  position: relative;
  width: 100%;
  padding: 100px 15px 150px 15px;
}
.inner {
  max-width: 1024px;
  margin: 0px auto;
  text-align: center;
}

/*main element*/
.pulse-icon{
  position: relative;
  display: inline-block;
}
/*icon styling here*/
.pulse-icon .icon-wrap{
   position: relative;
  width: 60px;
  height: 60px;
  box-shadow: 0px 12px 12px 0px rgba(0,0,0,0.1);
  text-align: center;
  display: inline-block;
  border-radius: 50%;
  color: #6A1B9A;
  background: #efefef;
  position: relative;
  z-index: 2;
}
.pulse-icon .icon{
  line-height: 60px;
  font-size: 1.75em;
  animation: grow-shrink 4s ease-out infinite;
}

/*container of all circles and pulses*/
.pulse-icon .elements{
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
}
.pulse-icon .circle{
  border-radius: 50%;
  position: absolute;
}
.pulse-icon .circle-inner{
  width: 80px;
  height: 80px;
  top: -10px;
  left: -10px;
  background: linear-gradient(-180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.1) 100%);
  animation: grow-circles 4s linear infinite both;
}
.pulse-icon .circle-outer{
  width: 100px;
  height: 100px;
  background: linear-gradient(-180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.1) 100%);
  top: -20px;
  left: -20px;
  animation: grow-circles 4s linear infinite both;
}

/*series of x pulses of differing sizes*/
.pulse-icon .pulse{
  position: absolute;
  animation: pulse-wave 4s linear infinite both;
  border-radius: 50%;
}
.pulse-icon .pulse-1{
  border: solid 1px rgba(255,255,255,0.25);
  width: 200px;
  height: 200px;
  top: -70px;
  left: -70px;
}
.pulse-icon .pulse-2{
  border: solid 1px rgba(255,255,255,0.35);
  width: 300px;
  height: 300px;
  top: -120px;
  left: -120px;
}
.pulse-icon .pulse-3{
  border: solid 1px rgba(255,255,255,0.45);
  width: 400px;
  height: 400px;
  top: -170px;
  left: -170px;
}

/*Animation for the outewards pulsating waves*/
@keyframes pulse-wave{
  0%{
    opacity: 0;
    transform: scale(0.1);
  }
  50%{
    opacity: 1;
    transform: scale(0.5);
  }
  100%{
    opacity: 0;
    transform: scale(1.0);
  }
}

/*animation for the inner and outer wave items to grow*/
@keyframes grow-circles{
  0%{
    opacity: 0.85;
    transform: scale(1.0);
  }
  15%{
    opacity: 1;
    transform: scale(1.05);
  }
  30%{
    opacity: 0.85;
    transform: scale(1.0);
  }
  
}



/*animation for the icon to slightly grow and shrink*/
@keyframes grow-shrink{
  0%{
    transform: scale(1);
  }
  15%{
    transform: scale(1.1);
  }
  30%{
    transform: scale(1);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console