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

              
                  <header>
    <h1>
      Scroll Animation
    </h1>
  </header>

  <section class="animation">

 <svg class="phone" width="728" viewBox="0 0 169 228" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns="http://www.w3.org/2000/svg">



      <defs>
        <path d="M0 0L169 0L169 228L0 228L0 0Z" id="path_1" />
        <clipPath id="mask_1">
          <use xlink:href="#path_1" />
        </clipPath>
      </defs>
      <g id="Phone---Copy">
        <path d="M0 0L169 0L169 228L0 228L0 0Z" id="Background" fill="none" fill-rule="evenodd" stroke="none" />
        <g clip-path="url(#mask_1)">
          <g id="phone" transform="translate(28 12)">
            <g id="phone_2">
              <path
                d="M0 36L0 18C0 13.0294 1.75736 8.7868 5.27208 5.27208C8.7868 1.75736 13.0294 0 18 0L95 0C99.9706 0 104.213 1.75736 107.728 5.27208C111.243 8.7868 113 13.0294 113 18L113 186C113 190.971 111.243 195.213 107.728 198.728C104.213 202.243 99.9706 204 95 204L18 204C13.0294 204 8.7868 202.243 5.27208 198.728C1.75736 195.213 0 190.971 0 186L0 36Z"
                id="Rectangle" fill="#F9F9F9" fill-rule="evenodd" stroke="none" />
            </g>
            <g id="skeleton" transform="translate(12 12)">
              <path
                d="M0 2L0 1C0 0.723858 0.0976311 0.488155 0.292893 0.292893C0.488155 0.0976311 0.723858 0 1 0L28 0C28.2761 0 28.5118 0.0976311 28.7071 0.292893C28.9024 0.488155 29 0.723858 29 1L29 8C29 8.27614 28.9024 8.51184 28.7071 8.70711C28.5118 8.90237 28.2761 9 28 9L1 9C0.723858 9 0.488155 8.90237 0.292893 8.70711C0.0976311 8.51184 0 8.27614 0 8L0 2Z"
                transform="translate(0 22)" id="Rectangle-2" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
              <path
                d="M0 2L0 1C0 0.723858 0.0976311 0.488155 0.292893 0.292893C0.488155 0.0976311 0.723858 0 1 0L25 0C25.2761 0 25.5118 0.0976311 25.7071 0.292893C25.9024 0.488155 26 0.723858 26 1L26 8C26 8.27614 25.9024 8.51184 25.7071 8.70711C25.5118 8.90237 25.2761 9 25 9L1 9C0.723858 9 0.488155 8.90237 0.292893 8.70711C0.0976311 8.51184 0 8.27614 0 8L0 2Z"
                transform="translate(32 22)" id="Rectangle-3" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
              <path
                d="M0 2L0 1C0 0.723858 0.0976311 0.488155 0.292893 0.292893C0.488155 0.0976311 0.723858 0 1 0L25 0C25.2761 0 25.5118 0.0976311 25.7071 0.292893C25.9024 0.488155 26 0.723858 26 1L26 8C26 8.27614 25.9024 8.51184 25.7071 8.70711C25.5118 8.90237 25.2761 9 25 9L1 9C0.723858 9 0.488155 8.90237 0.292893 8.70711C0.0976311 8.51184 0 8.27614 0 8L0 2Z"
                transform="translate(61 22)" id="Rectangle-6" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
              <path
                d="M0 2L0 1C0 0.723858 0.0976311 0.488155 0.292893 0.292893C0.488155 0.0976311 0.723858 0 1 0L43 0C43.2761 0 43.5118 0.0976311 43.7071 0.292893C43.9024 0.488155 44 0.723858 44 1L44 8C44 8.27614 43.9024 8.51184 43.7071 8.70711C43.5118 8.90237 43.2761 9 43 9L1 9C0.723858 9 0.488155 8.90237 0.292893 8.70711C0.0976311 8.51184 0 8.27614 0 8L0 2Z"
                transform="translate(0 34)" id="Rectangle-4" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
              <path
                d="M0 2L0 1C0 0.723858 0.0976311 0.488155 0.292893 0.292893C0.488155 0.0976311 0.723858 0 1 0L22 0C22.2761 0 22.5118 0.0976311 22.7071 0.292893C22.9024 0.488155 23 0.723858 23 1L23 8C23 8.27614 22.9024 8.51184 22.7071 8.70711C22.5118 8.90237 22.2761 9 22 9L1 9C0.723858 9 0.488155 8.90237 0.292893 8.70711C0.0976311 8.51184 0 8.27614 0 8L0 2Z"
                transform="translate(47 34)" id="Rectangle-5" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
              <path
                d="M0 2L0 1C0 0.723858 0.0976311 0.488155 0.292893 0.292893C0.488155 0.0976311 0.723858 0 1 0L14 0C14.2761 0 14.5118 0.0976311 14.7071 0.292893C14.9024 0.488155 15 0.723858 15 1L15 8C15 8.27614 14.9024 8.51184 14.7071 8.70711C14.5118 8.90237 14.2761 9 14 9L1 9C0.723858 9 0.488155 8.90237 0.292893 8.70711C0.0976311 8.51184 0 8.27614 0 8L0 2Z"
                transform="translate(73 34)" id="Rectangle-7" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
              <path
                d="M0 5C0 2.23858 2.23858 0 5 0C7.76142 0 10 2.23858 10 5C10 7.76142 7.76142 10 5 10C2.23858 10 0 7.76142 0 5Z"
                id="Ellipse-1" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
              <g id="BurgerMenu" transform="translate(77 1)">
                <path d="M0 0L12 0L12 2L0 2L0 0Z" id="Rectangle-9" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
                <path d="M0 0L12 0L12 2L0 2L0 0Z" transform="translate(0 3)" id="Rectangle-10" fill="#E7E7E7"
                  fill-rule="evenodd" stroke="none" />
                <path d="M0 0L12 0L12 2L0 2L0 0Z" transform="translate(0 6)" id="Rectangle-11" fill="#E7E7E7"
                  fill-rule="evenodd" stroke="none" />
              </g>

              <g id="svg-videos">
                <g class="svg-video-item" order="1" id="Video-1" transform="translate(0 49)">
                  <path
                    d="M4.999 0L83.501 0Q83.6237 0 83.7463 0.00602151Q83.8689 0.012043 83.991 0.0240715Q84.1131 0.0361001 84.2345 0.0541066Q84.3559 0.0721132 84.4762 0.0960544Q84.5966 0.119996 84.7156 0.149814Q84.8347 0.179632 84.9521 0.215255Q85.0696 0.250879 85.1851 0.292221Q85.3007 0.333564 85.414 0.380526Q85.5274 0.427489 85.6383 0.479957Q85.7493 0.532426 85.8575 0.590276Q85.9657 0.648125 86.071 0.711215Q86.1762 0.774305 86.2783 0.842483Q86.3803 0.910662 86.4789 0.983765Q86.5775 1.05687 86.6723 1.13472Q86.7672 1.21257 86.8581 1.29499Q86.949 1.3774 87.0358 1.46417Q87.1226 1.55095 87.205 1.64188Q87.2874 1.73281 87.3653 1.82767Q87.4431 1.92253 87.5162 2.0211Q87.5893 2.11967 87.6575 2.2217Q87.7257 2.32374 87.7888 2.429Q87.8519 2.53426 87.9097 2.64249Q87.9676 2.75072 88.02 2.86165Q88.0725 2.97259 88.1195 3.08597Q88.1664 3.19934 88.2078 3.31489Q88.2491 3.43043 88.2847 3.54787Q88.3204 3.6653 88.3502 3.78434Q88.38 3.90338 88.4039 4.02374Q88.4279 4.1441 88.4459 4.26549Q88.4639 4.38688 88.4759 4.50901Q88.488 4.63114 88.494 4.75371Q88.5 4.87628 88.5 4.999L88.5 32.001Q88.5 32.1237 88.494 32.2463Q88.488 32.3689 88.4759 32.491Q88.4639 32.6131 88.4459 32.7345Q88.4279 32.8559 88.4039 32.9763Q88.38 33.0966 88.3502 33.2157Q88.3204 33.3347 88.2847 33.4521Q88.2491 33.5696 88.2078 33.6851Q88.1664 33.8007 88.1195 33.914Q88.0725 34.0274 88.02 34.1383Q87.9676 34.2493 87.9097 34.3575Q87.8519 34.4657 87.7888 34.571Q87.7257 34.6763 87.6575 34.7783Q87.5893 34.8803 87.5162 34.9789Q87.4431 35.0775 87.3653 35.1723Q87.2874 35.2672 87.205 35.3581Q87.1226 35.449 87.0358 35.5358Q86.949 35.6226 86.8581 35.705Q86.7672 35.7874 86.6723 35.8653Q86.5775 35.9431 86.4789 36.0162Q86.3803 36.0893 86.2783 36.1575Q86.1762 36.2257 86.071 36.2888Q85.9657 36.3519 85.8575 36.4097Q85.7493 36.4676 85.6383 36.52Q85.5274 36.5725 85.414 36.6195Q85.3007 36.6664 85.1851 36.7078Q85.0696 36.7491 84.9521 36.7847Q84.8347 36.8204 84.7157 36.8502Q84.5966 36.88 84.4762 36.9039Q84.3559 36.9279 84.2345 36.9459Q84.1131 36.9639 83.991 36.9759Q83.8689 36.988 83.7463 36.994Q83.6237 37 83.501 37L4.999 37Q4.87628 37 4.75371 36.994Q4.63114 36.988 4.50901 36.9759Q4.38688 36.9639 4.26549 36.9459Q4.1441 36.9279 4.02374 36.9039Q3.90338 36.88 3.78434 36.8502Q3.6653 36.8204 3.54787 36.7847Q3.43043 36.7491 3.31489 36.7078Q3.19934 36.6664 3.08597 36.6195Q2.97259 36.5725 2.86165 36.52Q2.75072 36.4676 2.64249 36.4097Q2.53426 36.3519 2.429 36.2888Q2.32374 36.2257 2.2217 36.1575Q2.11967 36.0893 2.0211 36.0162Q1.92253 35.9431 1.82767 35.8653Q1.73281 35.7874 1.64188 35.705Q1.55095 35.6226 1.46417 35.5358Q1.3774 35.449 1.29499 35.3581Q1.21257 35.2672 1.13472 35.1723Q1.05687 35.0775 0.983765 34.9789Q0.910662 34.8803 0.842483 34.7783Q0.774305 34.6763 0.711215 34.571Q0.648125 34.4657 0.590276 34.3575Q0.532426 34.2493 0.479957 34.1383Q0.427489 34.0274 0.380526 33.914Q0.333564 33.8007 0.292221 33.6851Q0.250879 33.5696 0.215255 33.4521Q0.179632 33.3347 0.149814 33.2157Q0.119996 33.0966 0.0960544 32.9763Q0.0721132 32.8559 0.0541066 32.7345Q0.0361001 32.6131 0.0240715 32.491Q0.012043 32.3689 0.00602151 32.2463Q0 32.1237 0 32.001L0 4.999Q0 4.87628 0.00602151 4.75371Q0.012043 4.63114 0.0240715 4.50901Q0.0361001 4.38688 0.0541066 4.26549Q0.0721132 4.1441 0.0960544 4.02374Q0.119996 3.90338 0.149814 3.78434Q0.179632 3.6653 0.215255 3.54787Q0.250879 3.43043 0.292221 3.31489Q0.333564 3.19934 0.380526 3.08597Q0.427489 2.97259 0.479957 2.86165Q0.532426 2.75072 0.590276 2.64249Q0.648125 2.53426 0.711215 2.429Q0.774305 2.32374 0.842483 2.2217Q0.910662 2.11967 0.983765 2.0211Q1.05687 1.92253 1.13472 1.82767Q1.21257 1.73281 1.29499 1.64188Q1.3774 1.55095 1.46417 1.46417Q1.55095 1.3774 1.64188 1.29499Q1.73281 1.21257 1.82767 1.13472Q1.92253 1.05687 2.0211 0.983765Q2.11967 0.910662 2.2217 0.842483Q2.32374 0.774305 2.429 0.711215Q2.53426 0.648125 2.64249 0.590276Q2.75072 0.532426 2.86165 0.479957Q2.97259 0.427489 3.08597 0.380526Q3.19934 0.333564 3.31489 0.292221Q3.43043 0.250879 3.54787 0.215255Q3.6653 0.179632 3.78434 0.149814Q3.90338 0.119996 4.02374 0.0960544Q4.1441 0.0721132 4.26549 0.0541066Q4.38688 0.0361001 4.50901 0.0240715Q4.63114 0.012043 4.75371 0.00602151Q4.87628 0 4.999 0Z"
                    id="Rectangle-8" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
                  <g id="PlayIcon" transform="translate(36.32081 11)">
                    <path
                      d="M0 7.5C0 11.6421 3.4355 15 7.67341 15C11.9113 15 15.3468 11.6421 15.3468 7.5C15.3468 3.35786 11.9113 0 7.67341 0C3.4355 0 0 3.35786 0 7.5Z"
                      id="Ellipse" fill="#C4C4C4" fill-rule="evenodd" stroke="none" />
                    <path d="M9.2081 4.50001L1.17087e-05 0L5.12255e-06 5.07047L0 9L9.2081 4.50001Z"
                      transform="translate(4.092478 2.9999943)" id="Triangle" fill="#E7E7E7" fill-rule="evenodd"
                      stroke="none" />
                  </g>
                </g>
                <g class="svg-video-item" order="2" id="Video-2" transform="translate(0 92)">
                  <path
                    d="M4.999 0L83.501 0Q83.6237 0 83.7463 0.00602151Q83.8689 0.012043 83.991 0.0240715Q84.1131 0.0361001 84.2345 0.0541066Q84.3559 0.0721132 84.4762 0.0960544Q84.5966 0.119996 84.7156 0.149814Q84.8347 0.179632 84.9521 0.215255Q85.0696 0.250879 85.1851 0.292221Q85.3007 0.333564 85.414 0.380526Q85.5274 0.427489 85.6383 0.479957Q85.7493 0.532426 85.8575 0.590276Q85.9657 0.648125 86.071 0.711215Q86.1762 0.774305 86.2783 0.842483Q86.3803 0.910662 86.4789 0.983765Q86.5775 1.05687 86.6723 1.13472Q86.7672 1.21257 86.8581 1.29499Q86.949 1.3774 87.0358 1.46417Q87.1226 1.55095 87.205 1.64188Q87.2874 1.73281 87.3653 1.82767Q87.4431 1.92253 87.5162 2.0211Q87.5893 2.11967 87.6575 2.2217Q87.7257 2.32374 87.7888 2.429Q87.8519 2.53426 87.9097 2.64249Q87.9676 2.75072 88.02 2.86165Q88.0725 2.97259 88.1195 3.08597Q88.1664 3.19934 88.2078 3.31489Q88.2491 3.43043 88.2847 3.54787Q88.3204 3.6653 88.3502 3.78434Q88.38 3.90338 88.4039 4.02374Q88.4279 4.1441 88.4459 4.26549Q88.4639 4.38688 88.4759 4.50901Q88.488 4.63114 88.494 4.75371Q88.5 4.87628 88.5 4.999L88.5 32.001Q88.5 32.1237 88.494 32.2463Q88.488 32.3689 88.4759 32.491Q88.4639 32.6131 88.4459 32.7345Q88.4279 32.8559 88.4039 32.9763Q88.38 33.0966 88.3502 33.2157Q88.3204 33.3347 88.2847 33.4521Q88.2491 33.5696 88.2078 33.6851Q88.1664 33.8007 88.1195 33.914Q88.0725 34.0274 88.02 34.1383Q87.9676 34.2493 87.9097 34.3575Q87.8519 34.4657 87.7888 34.571Q87.7257 34.6763 87.6575 34.7783Q87.5893 34.8803 87.5162 34.9789Q87.4431 35.0775 87.3653 35.1723Q87.2874 35.2672 87.205 35.3581Q87.1226 35.449 87.0358 35.5358Q86.949 35.6226 86.8581 35.705Q86.7672 35.7874 86.6723 35.8653Q86.5775 35.9431 86.4789 36.0162Q86.3803 36.0893 86.2783 36.1575Q86.1762 36.2257 86.071 36.2888Q85.9657 36.3519 85.8575 36.4097Q85.7493 36.4676 85.6383 36.52Q85.5274 36.5725 85.414 36.6195Q85.3007 36.6664 85.1851 36.7078Q85.0696 36.7491 84.9521 36.7847Q84.8347 36.8204 84.7157 36.8502Q84.5966 36.88 84.4762 36.9039Q84.3559 36.9279 84.2345 36.9459Q84.1131 36.9639 83.991 36.9759Q83.8689 36.988 83.7463 36.994Q83.6237 37 83.501 37L4.999 37Q4.87628 37 4.75371 36.994Q4.63114 36.988 4.50901 36.9759Q4.38688 36.9639 4.26549 36.9459Q4.1441 36.9279 4.02374 36.9039Q3.90338 36.88 3.78434 36.8502Q3.6653 36.8204 3.54787 36.7847Q3.43043 36.7491 3.31489 36.7078Q3.19934 36.6664 3.08597 36.6195Q2.97259 36.5725 2.86165 36.52Q2.75072 36.4676 2.64249 36.4097Q2.53426 36.3519 2.429 36.2888Q2.32374 36.2257 2.2217 36.1575Q2.11967 36.0893 2.0211 36.0162Q1.92253 35.9431 1.82767 35.8653Q1.73281 35.7874 1.64188 35.705Q1.55095 35.6226 1.46417 35.5358Q1.3774 35.449 1.29499 35.3581Q1.21257 35.2672 1.13472 35.1723Q1.05687 35.0775 0.983765 34.9789Q0.910662 34.8803 0.842483 34.7783Q0.774305 34.6763 0.711215 34.571Q0.648125 34.4657 0.590276 34.3575Q0.532426 34.2493 0.479957 34.1383Q0.427489 34.0274 0.380526 33.914Q0.333564 33.8007 0.292221 33.6851Q0.250879 33.5696 0.215255 33.4521Q0.179632 33.3347 0.149814 33.2157Q0.119996 33.0966 0.0960544 32.9763Q0.0721132 32.8559 0.0541066 32.7345Q0.0361001 32.6131 0.0240715 32.491Q0.012043 32.3689 0.00602151 32.2463Q0 32.1237 0 32.001L0 4.999Q0 4.87628 0.00602151 4.75371Q0.012043 4.63114 0.0240715 4.50901Q0.0361001 4.38688 0.0541066 4.26549Q0.0721132 4.1441 0.0960544 4.02374Q0.119996 3.90338 0.149814 3.78434Q0.179632 3.6653 0.215255 3.54787Q0.250879 3.43043 0.292221 3.31489Q0.333564 3.19934 0.380526 3.08597Q0.427489 2.97259 0.479957 2.86165Q0.532426 2.75072 0.590276 2.64249Q0.648125 2.53426 0.711215 2.429Q0.774305 2.32374 0.842483 2.2217Q0.910662 2.11967 0.983765 2.0211Q1.05687 1.92253 1.13472 1.82767Q1.21257 1.73281 1.29499 1.64188Q1.3774 1.55095 1.46417 1.46417Q1.55095 1.3774 1.64188 1.29499Q1.73281 1.21257 1.82767 1.13472Q1.92253 1.05687 2.0211 0.983765Q2.11967 0.910662 2.2217 0.842483Q2.32374 0.774305 2.429 0.711215Q2.53426 0.648125 2.64249 0.590276Q2.75072 0.532426 2.86165 0.479957Q2.97259 0.427489 3.08597 0.380526Q3.19934 0.333564 3.31489 0.292221Q3.43043 0.250879 3.54787 0.215255Q3.6653 0.179632 3.78434 0.149814Q3.90338 0.119996 4.02374 0.0960544Q4.1441 0.0721132 4.26549 0.0541066Q4.38688 0.0361001 4.50901 0.0240715Q4.63114 0.012043 4.75371 0.00602151Q4.87628 0 4.999 0Z"
                    id="Rectangle-8" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
                  <g id="PlayIcon" transform="translate(36.32081 11)">
                    <path
                      d="M0 7.5C0 11.6421 3.4355 15 7.67341 15C11.9113 15 15.3468 11.6421 15.3468 7.5C15.3468 3.35786 11.9113 0 7.67341 0C3.4355 0 0 3.35786 0 7.5Z"
                      id="Ellipse" fill="#C4C4C4" fill-rule="evenodd" stroke="none" />
                    <path d="M9.2081 4.50001L1.17087e-05 0L5.12255e-06 5.07047L0 9L9.2081 4.50001Z"
                      transform="translate(4.092478 2.9999943)" id="Triangle" fill="#E7E7E7" fill-rule="evenodd"
                      stroke="none" />
                  </g>
                </g>
                <g class="svg-video-item" order="3" id="Video-3" transform="translate(0 136)">
                  <path
                    d="M4.999 0L83.501 0Q83.6237 0 83.7463 0.00602151Q83.8689 0.012043 83.991 0.0240715Q84.1131 0.0361001 84.2345 0.0541066Q84.3559 0.0721132 84.4762 0.0960544Q84.5966 0.119996 84.7156 0.149814Q84.8347 0.179632 84.9521 0.215255Q85.0696 0.250879 85.1851 0.292221Q85.3007 0.333564 85.414 0.380526Q85.5274 0.427489 85.6383 0.479957Q85.7493 0.532426 85.8575 0.590276Q85.9657 0.648125 86.071 0.711215Q86.1762 0.774305 86.2783 0.842483Q86.3803 0.910662 86.4789 0.983765Q86.5775 1.05687 86.6723 1.13472Q86.7672 1.21257 86.8581 1.29499Q86.949 1.3774 87.0358 1.46417Q87.1226 1.55095 87.205 1.64188Q87.2874 1.73281 87.3653 1.82767Q87.4431 1.92253 87.5162 2.0211Q87.5893 2.11967 87.6575 2.2217Q87.7257 2.32374 87.7888 2.429Q87.8519 2.53426 87.9097 2.64249Q87.9676 2.75072 88.02 2.86165Q88.0725 2.97259 88.1195 3.08597Q88.1664 3.19934 88.2078 3.31489Q88.2491 3.43043 88.2847 3.54787Q88.3204 3.6653 88.3502 3.78434Q88.38 3.90338 88.4039 4.02374Q88.4279 4.1441 88.4459 4.26549Q88.4639 4.38688 88.4759 4.50901Q88.488 4.63114 88.494 4.75371Q88.5 4.87628 88.5 4.999L88.5 32.001Q88.5 32.1237 88.494 32.2463Q88.488 32.3689 88.4759 32.491Q88.4639 32.6131 88.4459 32.7345Q88.4279 32.8559 88.4039 32.9763Q88.38 33.0966 88.3502 33.2157Q88.3204 33.3347 88.2847 33.4521Q88.2491 33.5696 88.2078 33.6851Q88.1664 33.8007 88.1195 33.914Q88.0725 34.0274 88.02 34.1383Q87.9676 34.2493 87.9097 34.3575Q87.8519 34.4657 87.7888 34.571Q87.7257 34.6763 87.6575 34.7783Q87.5893 34.8803 87.5162 34.9789Q87.4431 35.0775 87.3653 35.1723Q87.2874 35.2672 87.205 35.3581Q87.1226 35.449 87.0358 35.5358Q86.949 35.6226 86.8581 35.705Q86.7672 35.7874 86.6723 35.8653Q86.5775 35.9431 86.4789 36.0162Q86.3803 36.0893 86.2783 36.1575Q86.1762 36.2257 86.071 36.2888Q85.9657 36.3519 85.8575 36.4097Q85.7493 36.4676 85.6383 36.52Q85.5274 36.5725 85.414 36.6195Q85.3007 36.6664 85.1851 36.7078Q85.0696 36.7491 84.9521 36.7847Q84.8347 36.8204 84.7157 36.8502Q84.5966 36.88 84.4762 36.9039Q84.3559 36.9279 84.2345 36.9459Q84.1131 36.9639 83.991 36.9759Q83.8689 36.988 83.7463 36.994Q83.6237 37 83.501 37L4.999 37Q4.87628 37 4.75371 36.994Q4.63114 36.988 4.50901 36.9759Q4.38688 36.9639 4.26549 36.9459Q4.1441 36.9279 4.02374 36.9039Q3.90338 36.88 3.78434 36.8502Q3.6653 36.8204 3.54787 36.7847Q3.43043 36.7491 3.31489 36.7078Q3.19934 36.6664 3.08597 36.6195Q2.97259 36.5725 2.86165 36.52Q2.75072 36.4676 2.64249 36.4097Q2.53426 36.3519 2.429 36.2888Q2.32374 36.2257 2.2217 36.1575Q2.11967 36.0893 2.0211 36.0162Q1.92253 35.9431 1.82767 35.8653Q1.73281 35.7874 1.64188 35.705Q1.55095 35.6226 1.46417 35.5358Q1.3774 35.449 1.29499 35.3581Q1.21257 35.2672 1.13472 35.1723Q1.05687 35.0775 0.983765 34.9789Q0.910662 34.8803 0.842483 34.7783Q0.774305 34.6763 0.711215 34.571Q0.648125 34.4657 0.590276 34.3575Q0.532426 34.2493 0.479957 34.1383Q0.427489 34.0274 0.380526 33.914Q0.333564 33.8007 0.292221 33.6851Q0.250879 33.5696 0.215255 33.4521Q0.179632 33.3347 0.149814 33.2157Q0.119996 33.0966 0.0960544 32.9763Q0.0721132 32.8559 0.0541066 32.7345Q0.0361001 32.6131 0.0240715 32.491Q0.012043 32.3689 0.00602151 32.2463Q0 32.1237 0 32.001L0 4.999Q0 4.87628 0.00602151 4.75371Q0.012043 4.63114 0.0240715 4.50901Q0.0361001 4.38688 0.0541066 4.26549Q0.0721132 4.1441 0.0960544 4.02374Q0.119996 3.90338 0.149814 3.78434Q0.179632 3.6653 0.215255 3.54787Q0.250879 3.43043 0.292221 3.31489Q0.333564 3.19934 0.380526 3.08597Q0.427489 2.97259 0.479957 2.86165Q0.532426 2.75072 0.590276 2.64249Q0.648125 2.53426 0.711215 2.429Q0.774305 2.32374 0.842483 2.2217Q0.910662 2.11967 0.983765 2.0211Q1.05687 1.92253 1.13472 1.82767Q1.21257 1.73281 1.29499 1.64188Q1.3774 1.55095 1.46417 1.46417Q1.55095 1.3774 1.64188 1.29499Q1.73281 1.21257 1.82767 1.13472Q1.92253 1.05687 2.0211 0.983765Q2.11967 0.910662 2.2217 0.842483Q2.32374 0.774305 2.429 0.711215Q2.53426 0.648125 2.64249 0.590276Q2.75072 0.532426 2.86165 0.479957Q2.97259 0.427489 3.08597 0.380526Q3.19934 0.333564 3.31489 0.292221Q3.43043 0.250879 3.54787 0.215255Q3.6653 0.179632 3.78434 0.149814Q3.90338 0.119996 4.02374 0.0960544Q4.1441 0.0721132 4.26549 0.0541066Q4.38688 0.0361001 4.50901 0.0240715Q4.63114 0.012043 4.75371 0.00602151Q4.87628 0 4.999 0Z"
                    id="Rectangle-8" fill="#E7E7E7" fill-rule="evenodd" stroke="none" />
                  <g id="PlayIcon" transform="translate(36.32081 11)">
                    <path
                      d="M0 7.5C0 11.6421 3.4355 15 7.67341 15C11.9113 15 15.3468 11.6421 15.3468 7.5C15.3468 3.35786 11.9113 0 7.67341 0C3.4355 0 0 3.35786 0 7.5Z"
                      id="Ellipse" fill="#C4C4C4" fill-rule="evenodd" stroke="none" />
                    <path d="M9.2081 4.50001L1.17087e-05 0L5.12255e-06 5.07047L0 9L9.2081 4.50001Z"
                      transform="translate(4.092478 3)" id="Triangle" fill="#E7E7E7" fill-rule="evenodd"
                      stroke="none" />
                  </g>
                </g>
              </g>
            </g>
          </g>
        </g>
      </g>


    </svg>



  </section>

  <footer>

    <h1>
      Whoooooo
    </h1>
  </footer>

              
            
!

CSS

              
                * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

header,
footer {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	font-family: Arial, Helvetica, sans-serif;
}

header h1,
footer h1 {
	font-size: 60px;
}

.phone {
	height: 500px;
	filter: drop-shadow(20px 20px 10px rgba(0, 0, 0, 0.35));
	transform: rotateX(45deg) rotateY(0deg) rotateZ(35deg);
}
/* #Video-1:hover {
	filter: drop-shadow(0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.35));
	transition-duration: 0.3s;
}
#Video-2:hover {
	filter: drop-shadow(0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.35));
	transition-duration: 0.3s;
}
#Video-3:hover {
	filter: drop-shadow(0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.35));
	transition-duration: 0.3s;
} */
/* .inner-phone {

} */

.animation {
	/* overflow: hidden; */
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;

	background-image: linear-gradient(
		to right,
		#b8cbb8 0%,
		#b8cbb8 0%,
		#b465da 0%,
		#cf6cc9 33%,
		#ee609c 66%,
		#ee609c 100%
	);
}

#div {
	width: 100px;
	height: 100px;
	background-color: rgb(224, 22, 22);
}

              
            
!

JS

              
                let tween = new TimelineLite();
let tweenMax = new TimelineMax();

var controller = new ScrollMagic.Controller();

// let path = {
// 	// curviness: 1.25,
// 	// autoRotate: true,
// 	path: [{ y:  }],
// };

/* 
{ y: 94 }
{ y: 48 }
{ y: 94 }
{ y: 132 }

*/

var boxHeight = 40,
	totalHeight = boxHeight * 3 + 30, // * n of boxes + diff textBox
	time = 5,
	no01 = document.querySelectorAll("#svg-videos .svg-video-item"),
	dirFromLeft = "+=" + totalHeight,
	dirFromRight = "-=" + totalHeight;

var mod = gsap.utils.wrap(0, totalHeight);


tween.add(
	TweenLite.staggerFrom(
		["#Video-1", "#Video-2", "#Video-3"],
		1,
		{
			opacity: 0,
			scale: 0.5,
			transformOrigin: "center center",
			ease: Elastic.easeOut.config(1, 0.5),
		},
		0.5
	),
  TweenLite.to(no01, {
		y: dirFromLeft,
		modifiers: {
			y: (y) => mod(parseFloat(y)) + "px",
		},
		duration: time,
		ease: "none",
		repeat: -1,
	})

);

var phoneScreen = new ScrollMagic.Scene({
	triggerElement: ".animation",
	triggerHook: 0,
	reverse: false,
})
	.addIndicators()
	.setTween(tween)
	.addTo(controller);


              
            
!
999px

Console