Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


Auto Save

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.


  Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aliquid <a href="#">repudiandae</a> minima enim deserunt, nihil, reiciendis explicabo magnam animi officiis fugit, labore ea. <a href="#">Laboriosam</a>, consectetur. Fugit ex cum dolorem atque modi.

  <li><a href="#">Lorem ipsum dolor sit amet consectetur adipisicing elit.</a><p>Molestiae hic, similique saepe corrupti minus molestias unde quasi veritatis id possimus debitis soluta explicabo est. Incidunt distinctio nam ut assumenda voluptas.</p></li>
  <li><a href="#">Ducimus ab sint tempore itaque dolorum odio porro, officiis voluptates saepe vero provident.</a><p>Maxime, reprehenderit cupiditate. Voluptatem eius possimus maiores tempora labore quam consequatur ab explicabo debitis nam, repudiandae sed.</li>


                :root {
  font-size: 15px;
  --lighting-size: 300px;
  --lighting-color: #9333ea;
  --lighting-highlight-color: #d8b4fe;

body {
  --x: 0px;
  --y: 0px;
  max-width: 600px;
  margin: 80px auto;
  font-size: 1.5rem;
  font-family: Helvetica;
  background-color: #020617;
  color: #94a3b8;

div {
  padding: 40px;

a {
  text-decoration: none;
  color: #9333ea;
  display: inline-block;
  background-image: radial-gradient(var(--lighting-highlight-color), var(--lighting-color), var(--lighting-color));
  background-size: var(--lighting-size) var(--lighting-size);
  background-repeat: no-repeat;
  background-position-x: calc(var(--x) - var(--positionX) - calc(var(--lighting-size) / 2));
  background-position-y: calc(var(--y) - var(--positionY) - calc(var(--lighting-size) / 2));
  background-color: var(--lighting-color);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;


                document.querySelector('body').addEventListener('mousemove', (e) => {'--x', `${e.clientX}px`);'--y', `${e.clientY}px`);

function setLinksPositions() {
  document.querySelectorAll('a').forEach((a) => {
    const bounding = a.getBoundingClientRect();'--positionX', `${bounding.x}px`);'--positionY', `${bounding.y}px`);

window.addEventListener('load', setLinksPositions);
window.addEventListener('resize', setLinksPositions);