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.


                <div class="bubble">
  <a class="bubble-close">x</a>
  <p>To install this web app, press arrow and select <strong>"Add to Home Screen"</strong></p>

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


                /* reminder bubble styling */
    background: url('') center top no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  background-color: #f8d97c;
  border: 3px solid #e8b929;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  color: #444;
  display: none;
  padding: 0px;
  position: fixed;
  text-align: center;
  z-index: 100;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
.bubble p {
  font: normal 18px Arial, Sans-serif;
  margin: 8px;
.bubble strong{
  font-style: italic;
  font-weight: bold;
.bubble p, .bubble strong, .bubble span{
  text-shadow: 0 1px 0 rgba(256,256,256,0.5);
  bottom: 0;
    left: 51%;
    width: 240px;
    margin-bottom: 25px;
  margin-left: -125px;
.iphone:after {
  bottom: -16px;
  border: solid 20px transparent;
  border-bottom: 0;
  border-top-color: #f8d97c;
  content: "\0020";
  display: block;
  height: 0;
  left: 42%;
  overflow: hidden;
  position: absolute;
  width: 0;
  z-index: 101;  
.iphone:before {
  bottom: -20px;
  border-top-color: #e8b929;
  z-index: 99;
    top: 22px;
    left: 67px;
    width: 440px;
.ipad p{
    font-size: 20px;
.ipad:after {
  top: -16px;
  border: solid 20px transparent;
  border-top: 0;
  border-bottom-color: #f8d97c;
  content: "\0020";
  display: block;
  height: 0;
  left: 16%;
  overflow: hidden;
  position: absolute;
  width: 0;
  z-index: 101;  
.ipad:before {
  top: -20px;
  border-bottom-color: #e8b929;
  z-index: 99;
  background-color: #e8b929;
    border-radius: 80px;
    color: white;
    cursor: pointer;
    font: bold 20px Arial, Sans-serif;
    float: right;
    margin-right: -20px;
    margin-top: -15px;
    padding: 3px 9px;


                //toggle these vars to test device positioning
var isIphone = false;
var isIpad = true;

//toggle this to simulate full screen mode or not
var isStandAlone = false;

$(document).ready(function() {

function showMeTheBubble(){
        }else if(isIpad){
                localStorage.setItem("bubble", true);