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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <h1> Awesome bootstrap button extension</h1>
<h4> yes there are plenty of applications for this! :) </h4>

<button type="button" class="btn btn-default btn-arrow-left">Default</button>
<button type="button" class="btn btn-primary btn-arrow-left">Primary</button>
<button type="button" class="btn btn-success btn-arrow-left">Success</button>
<button type="button" class="btn btn-link">Link</button>
<button type="button" class="btn btn-info btn-arrow-right">Info</button>
<button type="button" class="btn btn-warning btn-arrow-right">Warning</button>
<button type="button" class="btn btn-danger btn-arrow-right">Danger</button>
              body { /* just for this demo. */
    padding: 30px;
.btn { /* just for this demo. */
    margin-top: 5px;
.btn-arrow-left {
    position: relative;
    padding-left: 18px;
    padding-right: 18px;
.btn-arrow-right {
    padding-left: 36px;
.btn-arrow-left {
    padding-right: 36px;
.btn-arrow-left:after { /* make two squares (before and after), looking similar to the button */
    position: absolute;
    top: 5px; /* move it down because of rounded corners */
    width: 22px; /* same as height */
    height: 22px; /* button_outer_height / sqrt(2) */
    background: inherit; /* use parent background */
    border: inherit; /* use parent border */
    border-left-color: transparent; /* hide left border */
    border-bottom-color: transparent; /* hide bottom border */
    border-radius: 0px 4px 0px 0px; /* round arrow corner, the shorthand property doesn't accept "inherit" so it is set to 4px */
    -webkit-border-radius: 0px 4px 0px 0px;
    -moz-border-radius: 0px 4px 0px 0px;
.btn-arrow-right:after {
    transform: rotate(45deg); /* rotate right arrow squares 45 deg to point right */
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
.btn-arrow-left:after {
    transform: rotate(225deg); /* rotate left arrow squares 225 deg to point left */
    -webkit-transform: rotate(225deg);
    -moz-transform: rotate(225deg);
    -o-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
.btn-arrow-left:before { /* align the "before" square to the left */
    left: -11px;
.btn-arrow-left:after { /* align the "after" square to the right */
    right: -11px;
.btn-arrow-left:before { /* bring arrow pointers to front */
    z-index: 1;
.btn-arrow-left:after { /* hide arrow tails background */
    background-color: white;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.