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.


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.


                <!-- <div class="description panel green">
    <h1>First section</h1>
</div> -->

<section class="scroll">
  <div class="container">
    <div class="description panel blue">
        <h1>Native horizontal scroll</h1>
        <p>Scroll horizontally to use the browsers native scroll.</p>
        <div class="scroll-down">Scroll Right<div class="arrow-right"></div>
    <section class="panel purple">
      <div class="box">spin me</div>
    <section class="panel orange"></section>

<!-- <section class="panel green">
    <h1>Last section</h1>
</section> -->

  <a href="">
    <img class="greensock-icon" src="" width="200" height="64" />


                .scroll {
  width: 100vw;
  height: 100vh;
  overflow: auto;

.container {
  width: 300%;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;

.description.panel p {
  text-align: center;

.box {
  width: 120px;
  height: 120px;
  background-color: white;
  color: black;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;




// spin the box".box", {
  rotate: 360,
  duration: 1,
  scrollTrigger: {
    scroller: '.scroll',
    horizontal: true,
    markers: true,
    trigger: ".box",
    start: "left center",
    toggleActions: "play none none reverse",