Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div class="chapter">
   <div class="chapter__intro section">
      <div class="chapter__intro-container container">
         <div class="chapter__intro-subtitle-wrapper">
            <div class="chapter__intro-subtitle">Глава 1</div>
         </div>
         <div class="chapter__intro-title-wrapper">
            <div class="chapter__intro-title">lorem impus dolor</div>
         </div>
         <div class="chapter__intro-img">
            <img src="img/chapter/img-1.png" alt="">
         </div>
      </div>
      <div class="chapter__intro-decoration"></div>
   </div>
   <div class="mps section">
      <div class="container">
         <div>lorem</div>
         <div>
            <div>lorem</div>
            <div>
               Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vulputate consectetur lorem, nec vehicula justo auctor eget. Nunc quis convallis metus. Donec egestas, justo eu feugiat sodales, dui mi suscipit metus, eget tempor sapien dolor quis mi. Etiam at erat efficitur quam dictum suscipit. Cras semper dolor ut libero lobortis maximus. Nunc tristique fringilla convallis. Praesent eros neque, tristique in velit eu, tempus auctor lectus. Nunc ornare fringilla elit id interdum. Phasellus eleifend arcu quis sem scelerisque, eu pellentesque tellus rhoncus. Morbi imperdiet urna ac elit rhoncus consectetur. Integer molestie tellus volutpat dolor tempor tincidunt. Aliquam sollicitudin neque pulvinar arcu euismod congue. Aenean commodo placerat odio, nec congue arcu ultrices sed. Maecenas semper turpis erat. Phasellus accumsan ligula eu lectus posuere pretium. Quisque volutpat vitae justo quis imperdiet.
            </div>
         </div>
      </div>
      <div class="mps__img mb100 mb-md-60">
         <img src="img/mps/img-1.png" alt="">
         <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vulputate consectetur lorem, nec vehicula justo auctor eget.</span>
      </div>
      <div class="container">
         <div class="row flb-ss jcfe mb100 mb-md-60">
            <div class="col-lg-6 col-12">
               <div class="mps__text pull-right">
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vulputate consectetur lorem, nec vehicula justo auctor eget. Nunc quis convallis metus. Donec egestas, justo eu feugiat sodales, dui mi suscipit metus, eget tempor sapien dolor quis mi. Etiam at erat efficitur quam
                  <span class="link--hint chapter--2">
                     <a href="">
                        lorem
                        <div class="hint">
                           <div class="hint__img">
                              <img src="img/hint/chapter-2.png" alt="">
                              <div class="hint__img-mask">
                                 <svg viewBox="0 0 419 99" fill="none" xmlns="http://www.w3.org/2000/svg">
                                    <path d="M209.744 0H0C48.4026 15.1564 86.5378 49.3804 98.7607 98.7608H111.473C124.184 49.3804 161.342 14.6674 209.744 0Z"/>
                                    <path d="M419 0H209.744C258.147 15.1564 296.282 49.3804 308.505 98.7608H321.217C333.929 49.3804 371.575 15.1564 419 0Z"/>
                                 </svg>
                              </div>
                           </div>
                           <div>
                              <small>lorem<i class="icon-arrow-right"></i></small>
                              <span>lorerm</span>
                           </div>
                        </div>
                        
                     </a>
                  </span>
                  lorem
               </div>
            </div>
         </div>
         <div class="quote mb100 mb-md-60">
            <div class="row flb-cc">
               <div class="col-xl-8 col-lg-10 col-12 flb-cc">
                  <div class="quote__img"><img src="img/quote/img-1.png" alt=""></div>
                  <div class="quote__text">
                     Lorem ipsum dolor sit amet, consectetur adipiscing elit
                  </div>
               </div>
            </div>
            <div class="row">
               <div class="push-lg-6 col-exl-2 col-lg-4 col-12">
                  <div class="quote__small"><span>lorem</span> Lorem ipsum</div>
               </div>
            </div>
         </div>
         <div class="row mb65 mb-md-60">
            <div class="col-xl-9 col-lg-11 col-12">
               <div class="mps__img">
                  <div class="black"><img src="img/mps/img-2.png" alt=""></div>
                  <span>lorem</span>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>

              
            
!

CSS

              
                .chapter__intro{
  background: cyan;
  padding-bottom: 200px;
}

.mps{
  background: tan;
  position: relative; 
  z-index:1000;
}

.mps__text{
  margin-bottom: 200px
}


              
            
!

JS

              
                   // gsap.utils.toArray(".section").forEach((chapter, i) => {
      ScrollTrigger.create({
         trigger: ".chapter__intro",
         start: "top top",
         pin: true,
         pinSpacing: false,
      });
   // });
              
            
!
999px

Console