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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  xmlns="" viewBox="0 0 1542.947 842.427">
    <filter id="glow" width="150%" height="150%" x="-25%" y="-25%" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
      <!--       blur the source graphic -->
      <feGaussianBlur in="SourceGraphic" stdDeviation="22"/>
      <!--       add pink color and opacity  -->
      <feColorMatrix values="0 0 0 0 0.988235 0 0 0 0 0.301961 0 0 0 0 0.890196 0 0 0 0.8 0"/>
      <!--       multiply the drop shadow -->
      <feBlend mode="multiply" result="DROPSHADOW"/>
      <!--       blend with the source graphic -->
      <feBlend in="SourceGraphic" in2="DROPSHADOW" />
  <g class="text">
    <path class="dash dotDash" d="M900.339,258.82h144v48h-144Z" fill="#fb22c6"/>
    <rect class="dot dotDash" x="308.339" y="354.82" width="48" height="48" fill="#fb22c6"/>

    <g filter="url(#glow)" fill="#ffffff">
      <g class="letters letter--two d">
        <path class="d1" d="M148.339,162.82h96a48,48,0,0,1,48,48h-144Z"/>
        <path class="d2" d="M148.339,162.82h48v240h-48Z"/>
        <path class="d3" d="M244.339,162.82a48,48,0,0,1,48,48v144a48,48,0,0,1-48,48Z"/>
        <path class="d4" d="M148.339,354.82h144a48,48,0,0,1-48,48h-96Z"/>
      <g class="letters letter--one s">
        <path class="s1" d="M372.339,498.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path class="s2" d="M372.339,546.82h96a48,48,0,0,1,48,48h-96A48,48,0,0,1,372.339,546.82Z"/>
        <path class="s3" d="M372.339,498.82a48,48,0,0,1,48-48v144a48,48,0,0,1-48-48Z"/>
        <path class="s4" d="M468.339,546.82a48,48,0,0,1,48,48v48a48,48,0,0,1-48,48Z"/>
        <path class="s5" d="M372.339,642.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,372.339,642.82Z"/>
      <g class="letters letter--one c">
        <path class="c1" d="M468.339,162.82a48,48,0,0,1,48,48v48h-48Z"/>
        <path class="c2" d="M372.339,210.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path class="c3" d="M372.339,210.82a48,48,0,0,1,48-48v240a48,48,0,0,1-48-48Z"/>
        <path class="c4" d="M372.339,354.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,372.339,354.82Z"/>
        <path class="c5" d="M468.339,306.82h48v48a48,48,0,0,1-48,48Z"/>
      <g class="letters letter--one o">
        <path class="o1" d="M548.339,210.82a48,48,0,0,1,48-48v240a48,48,0,0,1-48-48Z"/>
        <path class="o2" d="M548.339,354.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,548.339,354.82Z"/>
        <path class="o3" d="M548.339,210.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path class="o4" d="M644.339,162.82a48,48,0,0,1,48,48v144a48,48,0,0,1-48,48Z"/>
      <g class="letters letter--two n">
        <path class="n1" d="M724.339,162.82h48v240h-48Z"/>
        <path class="n2" d="M724.339,162.82h48l96,240h-48Z"/>
        <path class="n3" d="M820.339,162.82h48v240h-48Z"/>
      <g class="letters letter--one t-2">
        <path class="t1" d="M548.339,450.82h144v48h-144Z"/>
        <path class="t2" d="M596.339,450.82h48v240h-48Z"/>
      <g class="letters letter--two r">
        <path class="r1" d="M724.339,450.82h96a48,48,0,0,1,48,48h-144Z"/>
        <path class="r2" d="M724.339,450.82h48v240h-48Z"/>
        <path class="r3" d="M772.339,546.82h48l48,144h-48Z"/>
        <path class="r4" d="M820.339,450.82a48,48,0,0,1,48,48v48a48,48,0,0,1-48,48Z"/>
        <path class="r5" d="M772.339,546.82h48v48h-32Z"/>
      <g class="letters letter--one u">
        <path class="u1" d="M900.339,450.82h48v240a48,48,0,0,1-48-48Z"/>
        <path class="u2" d="M996.339,450.82h48v192a48,48,0,0,1-48,48Z"/>
        <path class="u3" d="M900.339,642.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,900.339,642.82Z"/>
      <g class="letters letter--two c-2">
        <path class="c6" d="M1076.339,498.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path class="c7" d="M1076.339,498.82a48,48,0,0,1,48-48v240a48,48,0,0,1-48-48Z"/>
        <path class="c8" d="M1172.339,450.82a48,48,0,0,1,48,48v48h-48Z"/>
        <path class="c9" d="M1172.339,594.82h48v48a48,48,0,0,1-48,48Z"/>
        <path class="c10" d="M1076.339,642.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,1076.339,642.82Z"/>
      <g class="letters letter--two t">
        <path class="t3" d="M1252.339,450.82h144v48h-144Z"/>
        <path class="t4" d="M1300.339,450.82h48v240h-48Z"/>
  <g opacity="0" class="glitchLayer"> 
    <rect x="0" y="0" width="1542" height="842" fill="#160a2b"/>
    <path d="M900.339,258.82h144v48h-144Z" fill="#fb22c6"/>
    <rect x="308.339" y="354.82" width="48" height="48" fill="#fb22c6"/>

    <g filter="url(#glow)" fill="#fff">
        <path d="M148.339,162.82h96a48,48,0,0,1,48,48h-144Z"/>
        <path d="M148.339,162.82h48v240h-48Z"/>
        <path d="M244.339,162.82a48,48,0,0,1,48,48v144a48,48,0,0,1-48,48Z"/>
        <path d="M148.339,354.82h144a48,48,0,0,1-48,48h-96Z"/>
        <path d="M372.339,498.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path d="M372.339,546.82h96a48,48,0,0,1,48,48h-96A48,48,0,0,1,372.339,546.82Z"/>
        <path d="M372.339,498.82a48,48,0,0,1,48-48v144a48,48,0,0,1-48-48Z"/>
        <path d="M468.339,546.82a48,48,0,0,1,48,48v48a48,48,0,0,1-48,48Z"/>
        <path d="M372.339,642.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,372.339,642.82Z"/>
        <path d="M468.339,162.82a48,48,0,0,1,48,48v48h-48Z"/>
        <path d="M372.339,210.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path d="M372.339,210.82a48,48,0,0,1,48-48v240a48,48,0,0,1-48-48Z"/>
        <path d="M372.339,354.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,372.339,354.82Z"/>
        <path d="M468.339,306.82h48v48a48,48,0,0,1-48,48Z"/>
        <path d="M548.339,210.82a48,48,0,0,1,48-48v240a48,48,0,0,1-48-48Z"/>
        <path d="M548.339,354.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,548.339,354.82Z"/>
        <path d="M548.339,210.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path d="M644.339,162.82a48,48,0,0,1,48,48v144a48,48,0,0,1-48,48Z"/>
        <path d="M724.339,162.82h48v240h-48Z"/>
        <path d="M724.339,162.82h48l96,240h-48Z"/>
        <path d="M820.339,162.82h48v240h-48Z"/>
        <path d="M548.339,450.82h144v48h-144Z"/>
        <path d="M596.339,450.82h48v240h-48Z"/>
        <path d="M724.339,450.82h96a48,48,0,0,1,48,48h-144Z"/>
        <path d="M724.339,450.82h48v240h-48Z"/>
        <path d="M772.339,546.82h48l48,144h-48Z"/>
        <path d="M820.339,450.82a48,48,0,0,1,48,48v48a48,48,0,0,1-48,48Z"/>
        <path d="M772.339,546.82h48v48h-32Z"/>
        <path d="M900.339,450.82h48v240a48,48,0,0,1-48-48Z"/>
        <path d="M996.339,450.82h48v192a48,48,0,0,1-48,48Z"/>
        <path d="M900.339,642.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,900.339,642.82Z"/>
        <path d="M1076.339,498.82a48,48,0,0,1,48-48h48a48,48,0,0,1,48,48Z"/>
        <path d="M1076.339,498.82a48,48,0,0,1,48-48v240a48,48,0,0,1-48-48Z"/>
        <path d="M1172.339,450.82a48,48,0,0,1,48,48v48h-48Z"/>
        <path d="M1172.339,594.82h48v48a48,48,0,0,1-48,48Z"/>
        <path d="M1076.339,642.82h144a48,48,0,0,1-48,48h-48A48,48,0,0,1,1076.339,642.82Z"/>
        <path d="M1252.339,450.82h144v48h-144Z"/>
        <path d="M1300.339,450.82h48v240h-48Z"/>

<a href="" target="_blank"><img class="gsap-3-logo" src="" width="150" /></a>
              body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #160a2b;

svg {
  width: 50vw;
  max-height: 400px;
  overflow: hidden;

svg path {
  opacity: 0.87;

.glitchLayer {

.gsap-3-logo {
    width: 20vw;
    max-width: 150px;
    position: fixed;
    bottom: 15px;
    right: 15px;

body:after {
  content: '';
  background-image: url(;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 999;
  opacity: 0.06;
  will-change: auto;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
              // setup
const fontArms = [".d1", ".d4", ".c2", ".c4", ".o2", ".o3", ".u2", ".c8", ".c9", ".s1", ".s5", ".s2", ".t1", ".r1", ".u3", ".c10", ".c6", ".t3"];
const fontRight = [".d3", ".c1", ".c5", ".o4", ".n3", ".s4", ".r4", ".u2", ".c8", ".c9"];
const fontLeft = [".d2", ".c3", ".o1", ".n1", ".s3", ".r2", ".u1", ".c7"]

// generate some glitchy keyframes
function getGlitchy(
) {
  const keyframes = [];
  for (i = 0; i < glitchKeyframeAmount; i++) {
    const keyframe = {};
    const randomNumber1 = gsap.utils.random(10, 90, 5);
    const randomNumber2 =
      randomNumber1 + gsap.utils.random(-glitchFrameSize, glitchFrameSize, 2);
    const randomOffset = gsap.utils.random(
      -1 * glitchKeyframeOffset
    const isLastFrame = i === glitchKeyframeAmount - 1;

    if (i % 3 === 0 || isLastFrame) {
      keyframe.clipPath = `polygon(0 ${randomNumber1}%, 100% ${randomNumber1}%, 100% ${randomNumber1}%, 0 ${randomNumber1}%)`;
    } else {
      keyframe.clipPath = `polygon(0 ${randomNumber1}%, 100% ${randomNumber1}%, 100% ${randomNumber2}%, 0   ${randomNumber2}%)`;
      keyframe.xPercent = randomOffset;
    keyframe.webkitClipPath = keyframe.clipPath;
  return keyframes;

// nice flickery eases, they need easePack 
const flicker = "rough({ template: sine.inOut, strength: 1.5, points: 10})";
const flicker2 = "rough({template: power0.none, strength: 2, points: 12})";
const strongFlicker = "rough({template: power2.inOut, strength: 2.5, points: 15})";

const glitchKeyframes = getGlitchy(8, 2, 20);

// timelines
function randomizedStretching() {
  var timeline = gsap.timeline()
  .from(".letters", {
    duration: 1,
    ease: flicker2,
    xPercent: (i) => {
			return gsap.utils.random(-400, 400, 5);
    scaleX: (i) => {
      return gsap.utils.random(0, 10);
    transformOrigin: "50%, 50%",
    stagger: 0.05

  return timeline;
function opacityFlicker() {
  var timeline = gsap.timeline({defaults: {duration: 1.5,opacity: 0,stagger: 0.1}})
  .from(".letter--one", {
    ease: strongFlicker,   
  .from(".letter--two", {
    ease: flicker2,
  return timeline;
function linesTimeline() {
 var timeline = gsap.timeline({defaults:{ease: "expo.out", duration: 1}})
.from(fontLeft, {
  xPercent: 100,
.from(fontRight, {
  xPercent: -100,
.from(fontArms, {
  scaleX: 0,
  transformOrigin:"50% 50%",
.from(".n2", {
  rotate: 20,
  scale: 0.9,
  transformOrigin:"50% 50%"
.from(".r3", {
  rotate: 19,
  xPercent: -30,
  opacity: 0,
  transformOrigin:"50% 50%"
 return timeline;
function openingPinkLines() {
  var timeline = gsap.timeline({defaults:{ duration: 0.5,}})
    scaleY: 0,
    scaleX: 0,
    xPercent: -200,
    transformOrigin: "50%,50%",
    ease: "linear",
    scaleY: 0.2,
    scaleX: 20,
    ease: "linear",
    xPercent: 900,
    scaleX: 300,
    transformOrigin: "100%,100%",
    ease: strongFlicker,
    opacity: 0,
    scaleX: 1,
    scaleY: 1,
    xPercent: -950,
    transformOrigin: "100%,100%",
    ease: strongFlicker,
  }, "-=0.5")
  return timeline;
function glitch() {
  var timeline = gsap.timeline()
    duration: 0.1,
    opacity: 1,
    duration: 1.5,
    ease: "flicker2",
    keyframes: glitchKeyframes
  return timeline;
function textGlitch() {
  var timeline = gsap.timeline({defaults: { duration: 0.5, transformOrigin: "100%,100%", ease: flicker, }})
    xPercent: 80,
    xPercent: 28,
    xPercent: -30,
    yPercent: 20,
    yPercent: -20,
    yPercent: -90,
    yPercent: 90,
    yPercent: 30,
  .to( ".t4",{
    yPercent: 30,
  return timeline;
function finalTextGlitch() {
  var timeline = gsap.timeline()
  .to([".d1", ".n1", ".n3", ".s5", ".r3", ".t4"],{
    duration: 0.2,
    yPercent: 0,
    xPercent: 0,
    transformOrigin: "100%,100%",
    ease: flicker,
  return timeline;

// main timeline
var masterTimeline = gsap.timeline({delay:1.5})

//Chris Gannons timeline scrubber tool
// ScrubGSAPTimeline(masterTimeline);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.