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.


                <h1>Scroll ⟵ left and right ⟶ to view</h1>
  <li> <img src="" alt="cut citrus fruits. " />Lorem Ipsum</li>
  <li> <img src="" alt="sliced mango. " />Dolor Sit</li>
  <li> <img src="" alt="a bunch of blueberries. " />Amet Consectetur</li>
  <li> <img src="" alt="a pineapple sitting on a table. " />Adipiscing Elit</li>
  <li> <img src="" alt="frozen raspberries. " /> Nunc Tortor</li>
  <li> <img src="" alt="a sliced strawberry. " />Metus Mollis</li>
  <li> <img src="" alt="an arrangement of assorted sliced fruits. " />Congue Sagittis</li>
  <li> <img src="" alt="sliced watermelons. " />Vestibulum Et</li>
  <li> <img src="" alt="grapefruits, lemons, and pomegranates. " />Donec Eget</li>
  <li> <img src="" alt="half of an avocado. " />Maecenas et Justo</li>
  <li> <img src="" alt="half of a lime. " />Malesuada Quam</li>
  <li> <img src="" alt="a single cherry with stem. " />Ultricies Sollicitudin</li>
  <li> <img src="" alt="a bunch of bananas. " />Gravida Nibh</li>
  <li> <img src="" alt="three pears. " />Pellentesque Sapien</li>
  <li> <img src="" alt="a basket full of peaches next to a plate with sliced peaches. " />Suspendisse Vel</li>
  <li> <img src="" alt="a bowl of avocados. " />Mauris Consectetur</li>


                @import url(";400;500;600;700;800;900&display=swap");

*:after {
  box-sizing: border-box;

html {
  &::-webkit-scrollbar {
    background-color: #1e1f26;
    height: 20px;
    width: 20px;

  &::-webkit-scrollbar-thumb {
    background: #383d4d;
    border-radius: 99em;
    border: 6px solid #1e1f26;

body {
  margin: 0;
  padding: 0;

h1 {
  font-size: clamp(20px, 2.5vw, 36px);
  color: rgba(#fff, 0.8);
  font-weight: 600;
  text-align: center;

img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;

ul {
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  overflow-y: hidden;
  overflow-x: auto;
  white-space: nowrap;
  text-align: center;
  scroll-behavior: smooth;

li {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  width: min(50vw, 350px);
  display: inline-block;
  text-align: center;
  background-color: #16171f;
  color: #9b9dad;
  padding-bottom: 1.5rem;
  font-size: clamp(18px, 2.5vw, 22px);
  box-shadow: -10px 0 30px 0 rgba(#000, 0.25);
  margin-left: -4px;

body {
  font-family: "Inter", sans-serif;
  background-color: #1e1f26;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;



                // Nope