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

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

              
                <section></section>
<div class="cr-circle-slider">
      <div class="container">
        <div class="row panel" id="slideContainer">
          <div class="col-md-6">
            <div class="single-slide">
              <span></span>
              <svg xmlns="http://www.w3.org/2000/svg" width="805" height="805" viewBox="0 0 805 805" fill="none">
<circle cx="402.185" cy="402.176" r="375" stroke="url(#paint0_linear_0_2831)"/>
<path d="M403.286 26.6865C345.437 26.5168 288.33 39.7157 236.422 65.2533C184.514 90.791 139.208 127.977 104.04 173.909L107.021 176.192C141.838 130.719 186.691 93.9049 238.08 68.6226C289.469 43.3404 346.004 30.2735 403.275 30.4415L403.286 26.6865Z" fill="#D9D9D9"/>
<defs>
<linearGradient id="paint0_linear_0_2831" x1="777.685" y1="401.676" x2="26.6853" y2="401.676" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="0.995243" stop-color="white" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>
            </div>
          </div>
          <div class="col-md-6">
            <div class="col-trigger one">
              <div class="">
                <div class="circle-data one">
                  <h3>B2B</h3>
                  <h5>Risk Management</h5>
                </div>
              </div>
              <div class="data-whole">
                <div class="pdata data-one">
                  <p>Manufacturer onboards creditor on CRELO.</p>
                </div>
                <div class="pdata data-two">
                  <p>Creditor gives consent to credit related data navigation.</p>
                </div>
                <div class="pdata data-three">
                  <p>Manufacturer gets an early warning notification of delay payment in advance.</p>
                </div>
                <div class="pdata data-four">
                  <p>CRELO helps the manufacturer insure the transaction.</p>
                </div>
                <div class="pdata data-five">
                  <p>Manufacturer collects 100% debt.</p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
<section></section>

<section style="height:500vh"></section>
              
            
!

CSS

              
                // .data-whole {
//     overflow: hidden;
//     display: flex;
//     flex-wrap: nowrap;
// }
// .pdata{
//     width: 100%;
//     padding: 0 20px 0 0;
// }
.data-whole {
  position: relative;
  .pdata{
position: absolute;
top: 0;
left: 0;
}
}
.single-slide {
    position: relative;
    width: 700px;
    height: 700px;
    left: -160px;
}
.single-slide span {
    width: 328px;
    height: 328px;
    border-radius: 50%;
    background: linear-gradient(240deg, #42B78A 0%, #00FFA7 100%);
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
}
.cicle-shape-col {
    width: 100%;
    height: 100%;
    background-image: url(../img/circle-svg.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    top: 0;
    transition: all 0.3s;
}
.cr-circle-slider {
    padding: 140px 0 140px 0;
    background-color: #0E1D22;
    position: relative;
    min-height: 1280px;
    overflow: hidden;
}
.circle-data h3 {
    color: #16E89F;
    font-size: 80px;
    margin-bottom: 42px;
}
.circle-data h5 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 28px;
    color: #fff;
}
.pdata p {
    font-size: 25px;
    color: #fff;
}
svg{
  position:absolute;
  width:100%;height:100%;
  top:0;left:0;right:0;bottom:0;
}
section{height:300px;}
// .pdata{
//     opacity: 0;
//     transition: all 0.4s;
// }
// .pdata.active{
//     opacity: 1;
//     transition: all 0.4s;
// }
              
            
!

JS

              
                console.clear(); // Start with a clean console on refesh

const item = document.querySelectorAll(".pdata");
const duration= 0.5;
const stagger = 1;
const tl = gsap.timeline({
  // scrollTrigger: {
  //   trigger: "#slideContainer", // What element triggers the scroll
  //   scrub: 1, // Add a small delay of scrolling and animation. `true` is direct
  //   start: "top top", // Can be top, center, bottom
  //   end: "bottom top", // Can be top, center, bottom
  //   pin: true,
  //   markers: true,
  //   snap: 1/(item.length + 1)
  // }
});

tl.from(item, {
  duration: duration,
  opacity: 0,
  x: 100,
  stagger: {
    each: stagger
  }
});
tl.to("svg",{
  duration: stagger * (item.length + 1),
  rotate: 360
},"<");
tl.to(item, {
  duration: duration,
  opacity: 0,
  x: -100,
  stagger: {
    each: stagger
  }
}, stagger);


              
            
!
999px

Console