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 class="recommended-by pos-relative">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="section-title">
                    <h2>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ea, quia.</h2>
                </div>
                <div class="recommended-wrapper">
                    <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                  <div class="single-recommended">
                        <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/astra.svg" alt="logo" class="img-fluid" />
                    </div>
                </div>

                <div class="section-core-features in-desktop">
                    <div class="core-features">
                        <div class="features-content-wrapper">
                            <div class="features-single-content" data-img-url="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/core-feature-img-2x.png">
                                <h4>1. Lorem, ipsum dolor.</h4>
                                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi saepe eaque possimus autem? Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi saepe eaque possimus autem?</p>
                            </div>
                          
                          <div class="features-single-content" data-img-url="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/Impress-Your-Visitors-Instantly-with-360-Degree-Backgrounds-2x.png">
                                <h4>2. Lorem, ipsum dolor.</h4>
                                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi saepe eaque possimus autem? Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi saepe eaque possimus autem?</p>
                            </div>
                          
                          <div class="features-single-content" data-img-url="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/Offer-Tour-Creation-Services-to-Your-Clients-Even-Outside-of-WordPress-2x.png">
                                <h4>3. Lorem, ipsum dolor.</h4>
                                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi saepe eaque possimus autem? Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi saepe eaque possimus autem?</p>
                            </div>
                        </div>

                        <div class="features-images-wrapper">
                            <div class="features-single-image">
                                <img src="https://staging-rextheme.kinsta.cloud/wp-content/uploads/2023/08/core-feature-img-2x.png" alt="WPVR core feature image" class="img-fluid" />
                            </div>
                            
                        </div>
                                
                    </div>
                </div>
                
            </div>
        </div>
    </div>
</section>



<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>

<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
<h1>I am headline</h1>
              
            
!

CSS

              
                .recommended-by {
  background: #0d0e17;
  padding: 34px 0 120px;
  overflow: hidden;
}
.recommended-by .recommended-by-blob {
  position: absolute;
  right: -150px;
  top: 280px;
}
.recommended-by .recommended-by-blob path {
  filter: blur(61px);
}
.recommended-by .section-title {
  text-align: center;
  margin-bottom: 70px;
}
.recommended-by .section-title h2 {
  color: #ffffff;
}
.recommended-by .recommended-wrapper {
  display: flex;
  flex-flow: row wrap;
  gap: 30px;
}
.recommended-by .recommended-wrapper .single-recommended {
  padding: 25px;
  width: calc(100% / 6 - 25px);
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  height: 90px;
  border-radius: 20px;
  border: 1px solid #222631;
  background: rgba(35, 36, 47, 0.5);
  box-shadow: 0px 5px 6px 0px rgba(255, 255, 255, 0.08) inset, 2px 0px 2px 0px rgba(0, 0, 0, 0.25) inset;
  backdrop-filter: blur(25px);
}
.core-features {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 145px;
  margin-top: 200px;
}
.core-features .features-content-wrapper {
  width: calc(40% - 65px);
  position: relative;
  border-left: 2px solid #353642;
}
.core-features .features-content-wrapper .features-single-content {
  margin-bottom: 53px;
  padding-left: 53px;
  position: relative;
  transition: all 0.3s ease;
}
.core-features .features-content-wrapper .features-single-content:last-child {
  margin-bottom: 0;
}
.core-features .features-content-wrapper .features-single-content:before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  background: #F6FCFF;
  height: 100%;
  width: 4px;
  border-radius: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.core-features .features-content-wrapper .features-single-content.active:before {
  opacity: 1;
  visibility: visible;
}
.core-features .features-content-wrapper .features-single-content h4 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  color: #fff;
  max-width: 404px;
  width: 100%;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.core-features .features-content-wrapper .features-single-content p {
  color: #B3B5C8;
  font-weight: 500;
  transition: all 0.3s ease;
}
.core-features .features-content-wrapper .features-single-content:not(.active) {
  opacity: 0.4;
}
.core-features .features-images-wrapper {
  width: calc(60% - 80px);
  border-radius: 90px;
  box-shadow: 0px 5px 6px 0px rgba(255, 255, 255, 0.08) inset, 2px 0px 2px 0px rgba(0, 0, 0, 0.25) inset;
  border: 1px solid #23242f;
  padding: 90px 50px;
  text-align: center;
  position: relative;
}
.core-features .features-images-wrapper:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(148deg, #2f42c4a1, #23242f61, #23242f);
  border-radius: 90px;
  z-index: 0;
  padding: 12px;
  backdrop-filter: blur(25px);
}
.core-features .features-images-wrapper:after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  background: rgba(25, 27, 43, 0.5);
  width: 100%;
  height: 100%;
  border-radius: 90px;
  backdrop-filter: blur(25px);
}
.core-features .features-images-wrapper .features-single-image {
  position: relative;
  z-index: 1;
}
.core-features .features-images-wrapper .features-single-image.active {
  display: block;
}
.core-features .features-images-wrapper .wpvr-btn {
  position: absolute;
  bottom: -29px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: -4px -10px 20px 0px rgba(0, 0, 0, 0.74);
  z-index: 2;
}
.core-features .features-images-wrapper .wpvr-btn:before {
  background: #141521;
}

              
            
!

JS

              
                jQuery(document).ready(function ($) {
  gsap.registerPlugin(ScrollTrigger);

  gsap.config({
    nullTargetWarn: false
  });

  ScrollTrigger.defaults({
  markers: true,
});
  function isMobile() {
    return window.innerWidth <= 991;
  }

  function mobileAnimation() {
    let sectionGsap = gsap.timeline({
      scrollTrigger: {
        trigger: ".section-core-features",
        start: "center center",
        end: "bottom bottom",
        scrub: true
      }
    });
    sectionGsap.fromTo(
      ".features-images-wrapper",
      {
        autoAlpha: 1
      },
      {
        duration: 0.25,
        autoAlpha: 1,
        scrollTrigger: {
          pin: true,
          trigger: ".features-images-wrapper",
          start: "center center",
          end: "bottom bottom"
        }
      }
    );

    gsap.utils.toArray(".features-single-content").forEach((row) => {
      ScrollTrigger.create({
        trigger: row,
        start: "80% 80%",
        onEnter: function () {
          if ($(row).hasClass("features-single-content1")) {
          } else {
            $(".features-single-content").removeClass("active");
            $(row).addClass("active");

            let imgUrl = $(row).attr("data-img-url");
            $(".features-images-wrapper img").attr("src", imgUrl);
            gsap.fromTo(
              "features-images-wrapper img",
              {
                autoAlpha: 0
              },
              {
                autoAlpha: 1,
                duration: 1
              }
            );
          }
        },
        onLeaveBack: function () {
          if ($(row).hasClass("features-single-content1")) {
          } else {
            $(".features-single-content").removeClass("active");
            $(row).prev().addClass("active");

            let imgUrl = $(row).prev().attr("data-img-url");
            $(".features-images-wrapper img").attr("src", imgUrl);
            gsap.fromTo(
              ".features-images-wrapper img",
              {
                autoAlpha: 0
              },
              {
                autoAlpha: 1,
                duration: 1
              }
            );
          }
        }
      });
    });
  }

  function desktopGsapAnimation() {
    let sectionGsap = gsap.timeline({
      scrollTrigger: {
        trigger: ".section-core-features",
        start: "top top",
        end: "bottom bottom",
        scrub: true
      }
    });
    sectionGsap.fromTo(
      ".features-images-wrapper",
      {
        autoAlpha: 1
      },
      {
        duration: 0.25,
        autoAlpha: 1,
        scrollTrigger: {
          pin: true,
          trigger: ".features-images-wrapper",
          start: "30px 30px",
          end: "top top"
        }
      }
    );

    gsap.utils.toArray(".features-single-content").forEach((row) => {
      ScrollTrigger.create({
        trigger: row,
        start: "top center",
        onEnter: function () {
          if ($(row).hasClass("features-single-content1")) {
          } else {
            $(".features-single-content").siblings().removeClass("active");
            $(row).addClass("active");

            let imgUrl = $(row).attr("data-img-url");
            $(".features-images-wrapper img").attr("src", imgUrl);
            gsap.fromTo(
              "features-images-wrapper img",
              {
                autoAlpha: 0
              },
              {
                autoAlpha: 1,
                duration: 1
              }
            );
          }
        },
        onLeaveBack: function () {
          if ($(row).hasClass("features-single-content1")) {
          } else {
            $(".features-single-content").siblings().removeClass("active");
            $(row).prev().addClass("active");

            let imgUrl = $(row).prev().attr("data-img-url");
            $(".features-images-wrapper img").attr("src", imgUrl);
            gsap.fromTo(
              ".features-images-wrapper img",
              {
                autoAlpha: 0
              },
              {
                autoAlpha: 1,
                duration: 1
              }
            );
          }
        }
      });
    });
  }

  if (isMobile()) {
    //mobileAnimation();
  } else {
    desktopGsapAnimation();
  }
});

ScrollTrigger.create({
  trigger: ".recommended-by",
  scrub: true,
  markers: true,
  pin: true,
  start: () => "top top",
  end: () => "+=2000",
  invalidateOnRefresh: true
});
              
            
!
999px

Console