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.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

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.


                <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary clickRipple">Primary</button>

<!-- Secondary, outline button -->
<button type="button" class="btn btn-secondary clickRipple">Secondary</button>

<!-- Indicates a successful or positive action -->
<button type="button" class="btn btn-success clickRipple">Success</button>

<!-- Contextual button for informational alert messages -->
<button type="button" class="btn btn-info clickRipple">Info</button>

<!-- Indicates caution should be taken with this action -->
<button type="button" class="btn btn-warning clickRipple">Warning</button>

<!-- Indicates a dangerous or potentially negative action -->
<button type="button" class="btn btn-danger clickRipple">Danger</button>

<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
<button type="button" class="btn btn-link clickRipple">Link</button>


                .clickRipple {
    overflow: hidden;
    position: relative;
.clickRippleSpan {
    display: block;
    position: absolute;
    border-radius: 50%;
    min-width: 50px;
    min-height: 50px;
    background-color: white;


                const buttons = document.getElementsByClassName('clickRipple');
for(button of buttons) {
  button.addEventListener('mouseup', function() {
    var clickX = event.pageX;
    var clickY = event.pageY;
    var pixelsToTop = this.offsetTop;
    var pixelsToLeft = this.offsetLeft;
    var rippleSpan = document.createElement('span');
    rippleSpan.className = 'clickRippleSpan'; = clickY - 25 - pixelsToTop + 'px'; = clickX - 25 - pixelsToLeft + 'px';