Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <section style="height:90px;width:1280px;background:#aadee1;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;top:25px;margin-left:35px;transform:tranlateX(-50%)">
  <h1>Logo</h1>
</section>


<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 40"><path d="M0 40C137.185 40 125.676 0 240 0s103.999 40 240 40H0Z" fill="#fff"></path></svg>
 
 <div style="margin-left:14px;margin-top:-14px">
 
  <div class="imgOwl">

   </div>
 </div>
              
            
!

CSS

              
                 svg{position:absolute;top:458px;z-index:9999;transform:scale(0.4);}

.imgOwl{width:1280px; margin:0px auto; height:525px; overflow:hidden; background: url('https://picsum.photos/1800/1200') 50% 50% / auto 100% no-repeat; background-size: cover;border-bottom-left-radius:24px;border-bottom-right-radius:24px;}
.imgOwl img{width:100%; max-width:768px; transform-origin: center center;  transform: translate(0%, 0%);}
              
            
!

JS

              
                gsap.registerPlugin (ScrollTrigger);
// --- OWL ---
gsap.to(".imgOwl", {scrollTrigger: {
  trigger: ".imgOwl",
  toggleActions: "restart pause reverse pause",
     // pin: true,
     // pinSpacing:false,
	 force3D: true,
      scrub:0.5,
  start: "top center",
    end: "center top"
    },
  backgroundPosition: "0px -250px", ease: "power1.inOut"});
              
            
!
999px

Console