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 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


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.


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.


                <!-- iOS reminder bubble markup -->
<div class="bubble" id="bubble">
  <a class="bubble-close" id="bubble-close">x</a>
  <p>don't forget to add this app to your <strong>home screen</strong> for easier access</p>

<!-- wanna the see the bubble again after you closed it? inspect/resources/localStorage/, delete the 'bubble' key and refresh -->


                /* remimder bubble styling */
  background-color: #FFF;
  border: 6px solid #666;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  bottom: 0px;
  color: #666;
  display: none;
  left: 50%;
  margin-bottom: 25px;
  margin-left: -125px;
  padding: 0px;
  position: fixed;
  text-align: center;
  width: 240px;
  z-index: 100;
.bubble p {
  font: normal 18px Arial, Sans-serif;
  margin: 8px;
.bubble strong{
  font-style: italic;
  font-weight: bold;
.bubble:after {
  bottom: -15px;
  border: solid 20px transparent;
  border-bottom: 0;
  border-top-color: #fff;
  content: "\0020";
  display: block;
  height: 0;
  left: 42%;
  overflow: hidden;
  position: absolute;
  width: 0;
  z-index: 101;  
.bubble:before {
  bottom: -24px;
  border-top-color: #666;
  z-index: 99;
  background-color: #666;
  border-radius: 80px;
  color: #fff;
  cursor: pointer;
  font: bold 20px Arial, Sans-serif;
  margin-right: -20px;
  margin-top: -20px;
  padding: 2px 9px;  


                $(function() {

function showMeTheBubble(){
  //does the 'bubble' key exist in localStorage? if not show the bubble markup.
      //store the 'bubble' key and set value to true.
      localStorage.setItem("bubble", true);
  else{console.log("meh, do nothing");}