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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


h1.clip clip-path: ellipse(50% 50% at 50% 50%);


  box-sizing border-box
  min-height 100vh
  display grid
  place-items center
  background hsl(210, 34%, 24%)
  height 50vmin
  position relative
  width 50vmin
  background hsl(210, 34%, 14%)
  position absolute
  top 0
  right 0
  bottom 0
  left 0
  height 100%
  width 100%
  object-fit cover
  clip-path ellipse(calc(var(--rx, 50) * 1%) calc(var(--ry, 50) * 1%) at calc(var(--x, 50) * 1%) calc(var(--y, 50) * 1%))
  transition clip-path calc(var(--speed, 0.25) * 1s)
  position absolute
  top calc(50% + 30vmin)
  left 50%
  transform translate(-50%, 0)
  color hsl(0, 0%, 100%)
  background hsla(0, 0%, 0%, 0.75)
  backdrop-filter blur(5px)
  padding 1rem
  white-space nowrap
  @media(max-width 768px)
    font-size 1rem 


                import { GUI } from ''

const CONFIG = {
  rx: 50,
  ry: 50,
  x: 50,
  y: 50,

const CONTROLLER = new GUI()
const LABEL = document.querySelector('h1')
const UPDATE = () => {'--rx', CONFIG.rx)'--ry', CONFIG.ry)'--x', CONFIG.x)'--y', CONFIG.y)
  LABEL.innerText = `clip-path: ellipse(${CONFIG.rx}% ${CONFIG.ry}% at ${CONFIG.x}% ${CONFIG.y}%);`

CONTROLLER.add(CONFIG, 'rx', 5, 150, 1).name('Radius X').onChange(UPDATE)
CONTROLLER.add(CONFIG, 'ry', 5, 150, 1).name('Radius Y').onChange(UPDATE)

CONTROLLER.add(CONFIG, 'x', 0, 100, 1).name('Position X').onChange(UPDATE)

CONTROLLER.add(CONFIG, 'y', 0, 100, 1).name('Position Y').onChange(UPDATE)