Pen Settings

HTML

CSS

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

JavaScript

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

Behavior

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

              
                
              
            
!

CSS

              
                
              
            
!

JS

              
                const frame = new Frame();
frame.on("ready", ()=>{
  const colors = series(pink,blue,yellow,orange,green,purple);
  const pattern = new Container();
  loop(6, i=>{
    new Rectangle(100-15*i, 100-15*i, colors, dark).addTo(pattern);
  });
  new Tile(pattern,30,30).centerReg().rot(-180+45);
  frame.stage.update();
});

// CSS EXAMPLE FOR COMPARISON
// ZIM is at 10% the size and perhaps a bit more readable.
// It may be that the CSS was created by a tool - probably.
// Of course ZIM probably adds about 20K once Distilled 
// and requires CreateJS (considered cached by IAB)
// but still... the HTML/CSS code format leaves something to be desired
// More ZIM here https://zimjs.com - cheers to @Lynn Fisher for the cool pattern


/*
p-color(degree, color, start, end)
  linear-gradient(degree, transparent start, color start, color end, transparent end)
p-line(degree, start, end)
  linear-gradient(degree, transparent start, black start, black end, transparent end)

body
  height: 100vh
  width: 100vw
  background-color: rebeccapurple
  background-image: linear-gradient( 45deg, black, black .5%,
                                            gold .5%, gold 7.6%,
                                            black 7.6%, black 8.642857143%,
                                            darkorange 8.642857143%, darkorange 15.64285714%,
                                            black 15.64285714%, black 16.88571429%,
                                            crimson 16.88571429%, crimson 23.84285714%,
                                            black 23.84285714%, black 25%,
                                            transparent 25%),
                    linear-gradient(-45deg, black, black .5%,
                                            gold .5%, gold 7.6%,
                                            black 7.6%, black 8.642857143%,
                                            darkorange 8.642857143%, darkorange 15.64285714%,
                                            black 15.64285714%, black 16.88571429%,
                                            crimson 16.88571429%, crimson 23.84285714%,
                                            black 23.84285714%, black 25%,
                                            transparent 25%),
                    p-line( 45deg, 73.857142860%, 75%),
                    p-line(-45deg, 73.857142860%, 75%),
                    p-color( 45deg, crimson, 66.857142860%, 73.857142860%),
                    p-color(-45deg, crimson, 66.857142860%, 73.857142860%),
                    p-line( 45deg, 65.714285710%, 66.857142860%),
                    p-line(-45deg, 65.714285710%, 66.857142860%),
                    p-color( 45deg, darkorange, 58.714285710%, 65.714285710%),
                    p-color(-45deg, darkorange, 58.714285710%, 65.714285710%),
                    p-line( 45deg, 57.571428570%, 58.714285710%),
                    p-line(-45deg, 57.571428570%, 58.714285710%),
                    p-color( 45deg, gold, 50.571428570%, 57.571428570%),
                    p-color(-45deg, gold, 50.571428570%, 57.571428570%),
                    p-line( 45deg, 49.428571430%, 50.571428570%),
                    p-line(-45deg, 49.428571430%, 50.571428570%),
                    p-color( 45deg, forestgreen, 42.428571430%, 49.428571430%),
                    p-color(-45deg, forestgreen, 42.428571430%, 49.428571430%),
                    p-line( 45deg, 41.285714290%, 42.428571430%),
                    p-line(-45deg, 41.285714290%, 42.428571430%),
                    p-color( 45deg, royalblue, 34.285714290%, 41.285714290%),
                    p-color(-45deg, royalblue, 34.285714290%, 41.285714290%),
                    p-line( 45deg, 33.142857143%, 34.285714290%),
                    p-line(-45deg, 33.142857143%, 34.285714290%)
  background-size: 100px 100px
  background-position: 0 0
  */
              
            
!
999px

Console