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

              
                <div class="wrapper overflow:hidden">
  <section class="h:100vh bg:pink flex jc:center ai:center">
    <div class="fade-up">
      Lorem ipsum dolor sit amet consectetur adipisicing elit. Reprehenderit a perspiciatis consectetur vitae quisquam repellat velit nemo architecto, quos provident excepturi enim voluptatem sapiente dolore sed maxime quo incidunt exercitationem!
    </div>
  </section>
  <section class="sec-1 rel
bg:url(https://img.freepik.com/free-photo/abstract-grunge-decorative-relief-navy-blue-stucco-wall-texture-wide-angle-rough-colored-background_1258-28311.jpg?w=2000) bg:fixed
" 
style="background-attachment: fixed">
    <div class="container">
        <div class="row">
            <div class="col-lg-6 min-h:900@width1200 rel sec-1-pic fade-left">
                <figure class="">
                    <img class="max-w:100%" src="https://3.bp.blogspot.com/-GCRwg01rCtE/V_sXreCYGOI/AAAAAAAApOo/R4WTsVrHN-wBPenCcPYifUQ2GNyyJR4WQCLcB/s1600/1.png" alt="">
                </figure>
            </div>
            <div class="col-lg-6 sec-1-text fade-up">
                <div class="pt:3em@width1200">
                    <h3 class="color:var(--light-blue-color)!">Low-power Mini-ITX Motherboard for IoT Edge Computing</h3>
                    <p class="color:white!">
                        The KINO-EHL-J6412 Mini-ITX motherboard features reliable performance,
                        advanced network connectivity and rich I/O capabilities in a
                        compact board that fits small chassis size for space-critical in stallation
                        like kiosk, POS or digital signage. The motherboard supports up
                        to 3 display outputs, 8 USB ports and 6 COM ports for a wide range
                        of peripheral connections. Dual 2.5GbE and 5G & Wi-Fi expandability
                        are available to provide high-bandwidth data transmission. Its flexible
                        customization options and low power advantages make it the ideal
                        choice for IoT edge applications, which require economic solution
                        with high scalability and reliability.
                    </p>
                </div>
            </div>
        </div>
    </div>
</section>
  <section class="sec-3 pt:3em">
      <div class="container">
          <div class="row">
              <div class="col-12">
                  <h3 class="t:center">Title</h3>
                  <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Et cumque perferendis neque maiores, dolore, voluptates nisi, nostrum dolores dolorum obcaecati minus. Officia nobis, fugiat porro nulla consequuntur eos repudiandae autem.
                  </p>
                  <div class="scroll-trigger flex">
                      <div class="scroll-trigger-item w:full">
                          <div class="mx:auto w:80% flex">
                              <div>
                                  <h4>Long-term Support</h4>
                                  <p>The Intel® Celeron® J6412 processor is available and supported for an extended
                                      period. This long-term availability makes the Mini-ITX motherboard an
                                      ideal solution for integrators looking to maximize their return on investment.
                                  </p>
                              </div>
                              <figure>
                                  <img src="../_img/fake.png" alt="">
                              </figure>
                          </div>
                      </div>
                      <div class="scroll-trigger-item w:full">
                          <div class="mx:auto w:80% flex">
                              <div>
                                  <h4>Long-term Support</h4>
                                  <p>The Intel® Celeron® J6412 processor is available and supported for an extended
                                      period. This long-term availability makes the Mini-ITX motherboard an
                                      ideal solution for integrators looking to maximize their return on investment.
                                  </p>
                              </div>
                              <figure>
                                  <img src="../_img/fake.png" alt="">
                              </figure>
                          </div>
                      </div>
                                                                <div class="scroll-trigger-item w:full">
                                    <div class="mx:auto w:80%">
                                        <h4>CPU Benchmark</h4>
                                        <figure>
                                            <img src="../_img/fake.png" class="max-w:30%" alt="">
                                            <small>Source:<a target="_blank" href="www.cpubenchmark.net">www.cpubenchmark.net</a></small>
                                        </figure>
                                    </div>
                                </div>
                                <div class=" scroll-trigger-item w:full">
                                    <div class="mx:auto w:80% flex flex:column flex:row@width1200">
                                        <div>
                                            <h4>Long-term Support</h4>
                                            <p>The Intel® Celeron® J6412 processor is available and supported for an extended
                                                period. This long-term availability makes the Mini-ITX motherboard an
                                                ideal solution for integrators looking to maximize their return on investment.
                                            </p>
                                        </div>
                                        <figure>
                                            <img class="max-w:80% h:80" src="../_img/fake.png" alt="">
                                        </figure>
                                    </div>
                                </div>
                                <div class=" scroll-trigger-item w:full">
                                    <div class="mx:auto w:80% flex flex:column flex:row@width1200">
                                        <div>
                                            <h4>Long-term Support</h4>
                                            <p>The Intel® Celeron® J6412 processor is available and supported for an extended
                                                period. This long-term availability makes the Mini-ITX motherboard an
                                                ideal solution for integrators looking to maximize their return on investment.
                                            </p>
                                        </div>
                                        <figure>
                                            <img class="max-w:80% h:80" src="../_img/fake.png" alt="">
                                        </figure>
                                    </div>
                                </div>
                                                    <div class="scroll-trigger-item w:full">
                                    <div class="mx:auto w:80%">
                                        <h4>CPU Benchmark</h4>
                                        <figure>
                                            <img src="../_img/fake.png" class="max-w:30%" alt="">
                                            <small>Source:<a target="_blank" href="www.cpubenchmark.net">www.cpubenchmark.net</a></small>
                                        </figure>
                                    </div>
                                </div>
                                <div class=" scroll-trigger-item w:full">
                                    <div class="mx:auto w:80% flex flex:column flex:row@width1200">
                                        <div>
                                            <h4>Long-term Support</h4>
                                            <p>The Intel® Celeron® J6412 processor is available and supported for an extended
                                                period. This long-term availability makes the Mini-ITX motherboard an
                                                ideal solution for integrators looking to maximize their return on investment.
                                            </p>
                                        </div>
                                        <figure>
                                            <img class="max-w:80% h:80" src="../_img/fake.png" alt="">
                                        </figure>
                                    </div>
                                </div>
                                                    <div class="scroll-trigger-item w:full">
                                    <div class="mx:auto w:80%">
                                        <h4>CPU Benchmark</h4>
                                        <figure>
                                            <img src="../_img/fake.png" class="max-w:30%" alt="">
                                            <small>Source:<a target="_blank" href="www.cpubenchmark.net">www.cpubenchmark.net</a></small>
                                        </figure>
                                    </div>
                                </div>
                                <div class=" scroll-trigger-item w:full">
                                    <div class="mx:auto w:80% flex flex:column flex:row@width1200">
                                        <div>
                                            <h4>Long-term Support</h4>
                                            <p>The Intel® Celeron® J6412 processor is available and supported for an extended
                                                period. This long-term availability makes the Mini-ITX motherboard an
                                                ideal solution for integrators looking to maximize their return on investment.
                                            </p>
                                        </div>
                                        <figure>
                                            <img class="max-w:80% h:80" src="../_img/fake.png" alt="">
                                        </figure>
                                    </div>
                                </div>
                  </div>
              </div>
          </div>
      </div>
  </section>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                console.clear();

/////////// css setting doesn't matter ////////
window.MasterCSSManual = true;
let Style = window.MasterStyle;
Style.extend('classes', {
    customContainer: 'margin:0|auto px:1em {px:0em;max-w:540px}@bsSm max-w:690px@width768 max-w:960px@width992 max-w:1140px@width1200 max-w:1280px@width1440',
    customRow: 'flex flex:wrap'
})
Style.extend('breakpoints', {
    bsSm: '576px',
    width768: '768px',
    width992: '992px',
    width1024: '1024px',
    width1200: '1200px',
    width1280: '1280px',
    width1440: '1440px',
    width1920: '1920px',
    width2560: '2560px',
});
window.initMasterCSS();
/////////// css setting doesn't matter ////////

gsap.registerPlugin(ScrollTrigger);

const gsapSimpleAnimation = (className, config, tl = gsap) => {
  const animateEl = gsap.utils.toArray(className);
  animateEl.forEach(item => {
    tl.from(item,{
      ...config,
      duration: item.dataset.duration || 0.7,
      delay: item.dataset.delay || null,
      scrollTrigger: {
        trigger: item,
        start: () => item.dataset.start || "-10% center",
        end: () => {
          if(item.dataset.end) item.dataset.end
          else "+=" + item.offsetWidth
        },
        toggleActions: 'restart none restart reverse',
        pinnedContainer: ".feature-sec .wrapper", 
        refreshPriority: -1 
      }
    })
  })
}
gsapSimpleAnimation('.fade-up',{ yPercent: 10, opacity: 0 })
gsapSimpleAnimation('.fade-left',{ xPercent: -10, opacity: 0 })


// section-3 animation
//////// comment out background-attachment will work //////////////
const items = gsap.utils.toArray(".scroll-trigger-item");
const scrollTriggerContainer = document.querySelector('.scroll-trigger');
scrollTriggerContainer.style.width = `${items.length*100}%`

gsap.to(items, {
  xPercent: (items.length - 1) * -100,
  scrollTrigger: {
    trigger: '.sec-3',
    pin: '.wrapper',
    scrub: 1,
    start: 'top top',
    end: () => "+=" + (items[0].offsetHeight * (items.length)),
    markers: true,
  },
});
//////////// comment out background-attachment will work ///////////
              
            
!
999px

Console