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="bg-light h-100vh position-relative py-5 overflow-x-hidden">
  <div class="position-relative py-1 mx-auto  rounded z-index-2 animated bounceInUp" style="max-width: 554px;">
    
    <h1 class="font-weight-light mx-3 mb-4 text-center">Awesome Alerts for Bootstrap</h1>
    
    
    <div class="alert alert-primary mx-3 animated flipInX" role="alert">
      <i class="fas fa-exclamation-circle opacity-05 mr-1"></i>
      Classic Alert
    </div>

    
    <div class="alert alert-primary rounded-0 border-right-0 border-left-0  animated fadeIn delay-01s" role="alert">
      <i class="fas fa-exclamation-triangle opacity-05 mr-1"></i>
      Fullwidth Alert
    </div>

    
    <div class="border-primary border-left border-width-4 px-4 py-3 mx-3 mb-3 bg-white text-black shadow-sm animated flipInX delay-02s" role="alert">
      <i class="fas fa-exclamation opacity-05 mr-3"></i>
      Border-left Alert
    </div>

    
    <div class="d-flex justify-content-between border-primary border-top border-width-4 px-4 py-3 mx-3 mb-3 bg-secondary text-white shadow animated flipInX delay-03s" role="alert">
      <span>Border-top Alert</span>
      <i class="fas fa-exclamation-circle opacity-05 mt-1"></i>
    </div>

    
    <div class="alert alert-primary bg-primary border-0 text-white mx-3 animated flipInX delay-04s" role="alert">
      <i class="fas fa-exclamation-triangle opacity-05 mr-2"></i>
      Colorful Alert
      <button type="button" class="close" aria-label="Close">
  <span aria-hidden="true" style="text-shadow: none;">&times;</span>
</button>
    </div>

    
    <div role="alert" class="mx-3 mb-3 shadow-lg animated flipInX delay-05s">
      <div class="px-4 py-1 bg-primary text-white rounded-top">Detailed Alert</div>
      <div class="px-4 py-3 bg-white d-flex rounded-bottom">
        <i class="fas fa-exclamation-circle opacity-05 text-dark my-1 mr-3"></i>
        <p>This alert contains additional infromation, such as steps the user can follow to resolve the situation.</p></div>
    </div>
    
    <div class="small mx-3 text-muted text-center">Made with Bootstrap v4.1.2, Font Awesome v5.3.1 and Animate.css v3.7.0</div>
  </div>
  
  <i class="position-absolute fas fa-exclamation-triangle text-white animated infinite pulse slower" style="top: 0; left: 0; font-size: 15em;"></i>
  <i class="position-absolute fas fa-exclamation-circle text-white animated infinite pulse slower delay-1s" style="bottom: 0; right: -0.5em; font-size: 30em"></i>
</div>
              
            
!

CSS

              
                .border-width-4 {
  border-width: 4px !important;
}
.overflow-x-hidden {
  overflow-x: hidden;  
}
.h-100vh {
  height: 100vh;
}
.z-index-1 {
  z-index: 1;
}
.z-index-2 {
  z-index: 2;
}
.opacity-05 {
  opacity: 0.5;
}
.delay-01s {
  animation-delay: 0.2s;
}
.delay-02s {
  animation-delay: 0.4s;
}
.delay-03s {
  animation-delay: 0.6s;
}
.delay-04s {
  animation-delay: 0.8s;
}
.delay-05s {
  animation-delay: 1s;
}
              
            
!

JS

              
                
              
            
!
999px

Console