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.


                <a id="bookmarklet" href="javascript:void((function(){
       var iframe, iframes = document.querySelectorAll('iframe');
       for (var i=0, l=iframes.length; i<l; ++i)
               iframe = iframes[i];
               if ('home-app-spotify') < 0)

       console.log('Spotify webplayer now supports fullscreen apps!');

var winW = 630, winH = 460;
var max = 0;
var scale = 0;
  var opacity = 9;

if (window.innerWidth && window.innerHeight) {
 winW = window.innerWidth;
 winH = window.innerHeight;

(function PowEffect() {
  var tmp = document.getElementById('POW');

  var img = tmp == null ? document.createElement('img') : tmp;
  img.src = ''; = 'POW';
  img.width = 0; = 1; = 'absolute'; = winW / 2 + 'px'; = winH / 4 + 'px'; = 1000; = 'inline';

  max = img.width;


function scaleUp(ms) {
      scale = 0;

      var img = document.getElementById('POW'); = 0 + 'px';

    function func2() {
      var img = document.getElementById('POW'); = scale + 'px';
      scale += 40;
      if (scale >= 600) { 
        window.setTimeout(function() {fadeOut(100);}, 1500);

    var scaling = window.setInterval(function() {func2()}, ms);

function fadeOut(ms) {

  function func() {
    var img = document.getElementById('POW'); = '0.' + opacity;
    if (opacity == -1) { 
        window.clearInterval(fading); = 'none';

  var fading = window.setInterval(function() {func()}, ms);

})());">Spotify fullscreen support bookmarklet</a>

<li>Drag the button above into your bookmarks bar</li>

<li>Go to <u></u> and click the bookmark.</li>

<li>Check the console for the message "<em>Spotify webplayer now supports fullscreen apps!</em>"</li>

<small>Originally written by Joakim Bennedich (<a href="">@bennedich</a>) and John-Philip Johansson (<a href="">@seriemajp</a>) during #musichackday 19-20 January 2013 at Spotify. POW! effect by Stefan Svebeck (<a href="">@tefgg</a>)</small>


                #bookmarklet {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  font-size: 1.25em;
  position: relative;
  cursor: move;
  color: #fff;
  text-decoration: none;
  background: #7AB800;
  padding: 10px 20px 8px;
  margin: 0 0 10px 0;
  display: inline-block;