Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


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.


                <section id="header">
<section id="circles">
        <div class="circle-container">
          <img src="" alt="purple circle emoji" class="circle first">
          <img src="" alt="purple circle emoji" class="circle second">
          <img src="" alt="purple circle emoji" class="circle third">
          <div class="circle blank"></div>
          <div class="text-container">
            <h2 class="circle-title">Hello World</h2>
<section id="end"></section>


                @import url(',400&display=swap');

body { 
  font-family: "Signika Negative", sans-serif; 
  font-weight: 300;
  margin: 0;
  padding: 0;
  color: #FFFFFF

section {
  height: 100vh;

section#header {
  background-color: #FCBF49;

section#circles {
  background-color: #003049;

section#end {
  background-color: #D62828;

.circle-container {
  /* position: relative; */
  display: grid;
  grid-template-columns: 60% 40%;
  height: calc(100vh - 2rem);
  align-items: center;
  padding: 2rem;


.circle {
  /* position: relative; */
  /* top: 0; */
  /* left: 0; */
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  transform: translateX(-40px);
  opacity: 0;
  z-index: 4;
  width: 30%;
  height: auto;

.circle:nth-child(2) {
  filter: hue-rotate(45deg);
  /* transform: scale(1.2); */
  z-index: 3;
  width: 50%;
  height: auto;

.circle:nth-child(3) {
  filter: hue-rotate(70deg);
  /* transform: scale(1.4); */
  z-index: 2;
  width: 70%;
  height: auto;  

.circle-title {
/*   opacity: 0; */



                // infinity and beyond!
// For more check out
      let circles_tl = gsap.timeline({repeat: 0});
      let circle_list = document.querySelectorAll(".circle");

    let circle_one = circle_list[0];
    let circle_two = circle_list[1];
    let circle_three = circle_list[2];
    let container = document.querySelector(".circle-container");

    const first_circle = "First Circle";
    const second_circle = "Second Circle";

    let pin_trigger = {
      trigger: container,
      start: "top top",
      end: "+=2400",
      pin: true,
      scrub: 0.4,

    let gsaptl = gsap.timeline({
      scrollTrigger: pin_trigger,
    function onCircleChange() {
    }, {
      opacity: 1,
      x: 0,
      stagger: {
        each: 0.4,
        onComplete: onCircleChange,