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 id="container"> 
  <blockquote class="speech-bubble">
    <div class="box">
      <div class="marquee-one">
        <i class="fa fa-twitter fa-3x fa-fw"></i>
        <i class="fa fa-github fa-3x fa-fw"></i>
        <i class="fa fa-instagram fa-3x fa-fw"></i>
        <i class="fa fa-facebook fa-3x fa-fw"></i>
        <i class="fa fa-pinterest fa-3x fa-fw"></i>
        <i class="fa fa-google-plus fa-3x fa-fw"></i>
        <i class="fa fa-behance fa-3x fa-fw"></i>
      </div>
    </div>
  </blockquote>
</div>

<div id="footer">
  <p>
    Thanks to <a href="http://nicolasgallagher.com/" target="_blank">Nicolas Gallagher</a> for the speech bubble code ;)
  </p>
</div>
              
            
!

CSS

              
                #container {
width: 400px;
padding: 0 0 50px;
margin: 0 auto;
}

.speech-bubble {
position: relative;
padding: 70px 0px;
margin: 1em auto 80px;
  background: -webkit-linear-gradient(left, #84c8c0, #6490c2); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right,  #84c8c0, #6490c2); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right,  #84c8c0, #6490c2); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right,  #84c8c0, #6490c2); /* Standard syntax */
text-align: center;
color: #fff;
-webkit-border-top-left-radius: 140px 140px;
-webkit-border-top-right-radius: 140px 140px;
-webkit-border-bottom-right-radius: 140px 140px;
-webkit-border-bottom-left-radius: 140px 140px;
-moz-border-radius: 140px / 140px;
border-radius: 140px / 140px;
}

.speech-bubble:before {
content: "";
position: absolute;
z-index: 10;
bottom: -40px;
right: 100px;
width: 50px;
height: 50px;
background: -webkit-linear-gradient(left, #84c8c0, #6490c2); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right,  #84c8c0, #6490c2); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right,  #84c8c0, #6490c2); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right,  #84c8c0, #6490c2); /* Standard syntax */
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
display: block;
}

.speech-bubble:after {
content: "";
position: absolute;
z-index: 10;
bottom: -60px;
right: 50px;
width: 25px;
height: 25px;
background: -webkit-linear-gradient(left, #84c8c0, #6490c2); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right,  #84c8c0, #6490c2); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right,  #84c8c0, #6490c2); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right,  #84c8c0, #6490c2); /* Standard syntax */
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
display: block;
}

.box {
    overflow: hidden;
}

.marquee-one {
  animation: marquee-one 5s linear infinite; 
  -webkit-animation: marquee-one 5s linear infinite;
  margin: 0;
  padding: 0;
  display: inline-block;
  white-space: nowrap;
}

@-webkit-keyframes marquee-one {
    0%   { text-indent: 18em }
    100% { text-indent: -50em }
}
              
            
!

JS

              
                
              
            
!
999px

Console