Pen Settings

HTML

CSS

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

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

              
                <svg id="demo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="2000" height="1200" viewBox="0 0 2000 1200">
  <defs>
    <linearGradient id="gradientGreen" x1="360" y1="284" x2="360" y2="678" gradientUnits="userSpaceOnUse">
      <stop offset="0" stop-color="#88ce02"/>
      <stop offset="0.5" stop-color="#acd479"/>
      <stop offset="0.69" stop-color="#9dd146"/>
      <stop offset="0.9" stop-color="#8ecf15"/>
      <stop offset="1" stop-color="#88ce02"/>
    </linearGradient>
 <lineargradient id="maskGradient" gradientUnits="userSpaceOnUse" x1="-1400" y1="0" x2="0" y2="250">
	<stop  offset="0" style="stop-color:#fff"/>
	<stop  offset="1" style="stop-color:#000"/>
</lineargradient>
<mask id="textMask">
 <rect class="maskRect" x="150" y="80" width="1200" height="250" fill="url(#maskGradient)"/>
 <rect class="maskRect" x="900" y="660" width="1200" height="250" fill="url(#maskGradient)" /> 
</mask>    
  </defs>


    <rect x="3" y="3" width="1994" height="1194" fill="#000" stroke="#333" stroke-width="6"/>

  <g id="Text">
    <g id="mainText" fill="url(#gradientGreen)" stroke="#88ce02" stroke-miterlimit="10" stroke-width="14">
      <path d="M354.88,584.92H512v93.46H208.51v-109q63.38-31.7,112.26-63.11,24.44-16.92,38.54-33.3a56.68,56.68,0,0,0,14.1-38.14q0-27.93-20.68-40.95t-50.76-13q-47.54,0-85.67,16.38v-101q30.62-5.64,60.69-8.87a571.63,571.63,0,0,1,60.7-3.22q73.85,0,124.07,29t50.22,98q0,31.43-14.1,57.74a172.85,172.85,0,0,1-36.39,46.59,307.24,307.24,0,0,1-45.92,34.78q-23.64,14.51-60.69,33.57Z" />
      <path d="M555.61,484.75q0-43.5,12.49-80.16t36.79-63.92q24.3-27.26,60-41.89t82.18-14.64q43.77,0,79.09,14a162.57,162.57,0,0,1,60.16,40.68q24.84,26.73,37.86,63.65t13,82.31q0,60.43-21.75,105.68t-64.86,70q-43.1,24.71-103.53,24.7-60.15,0-103.53-25.11T577.9,589.22Q555.61,543.57,555.61,484.75Zm144.22,0q0,29,1.07,47.27a159.51,159.51,0,0,0,5.24,33.3q4.15,15,14.23,24.17t26.72,9.13q21.21,0,31.42-15.17T791,545.85q2.28-22.43,2.28-61.1,0-40.28-2.28-62.84t-12.35-37.06q-10.08-14.5-31.56-14.5-22,0-32.36,14.63T702.11,422Q699.83,444.48,699.83,484.75Z" />
      <path d="M982.74,484.75q0-43.5,12.49-80.16T1032,340.67q24.3-27.26,60-41.89t82.18-14.64q43.77,0,79.09,14a162.65,162.65,0,0,1,60.16,40.68q24.83,26.73,37.86,63.65t13,82.31q0,60.43-21.76,105.68t-64.85,70q-43.11,24.71-103.53,24.7-60.17,0-103.53-25.11T1005,589.22Q982.74,543.57,982.74,484.75Zm144.22,0q0,29,1.07,47.27a159.51,159.51,0,0,0,5.24,33.3q4.15,15,14.23,24.17t26.72,9.13q21.21,0,31.42-15.17t12.49-37.6q2.28-22.43,2.28-61.1,0-40.28-2.28-62.84t-12.35-37.06q-10.08-14.5-31.56-14.5-22,0-32.36,14.63T1129.24,422Q1127,444.48,1127,484.75Z" />
      <path d="M1409.87,484.75q0-43.5,12.49-80.16t36.79-63.92q24.3-27.26,60-41.89t82.18-14.64q43.77,0,79.09,14a162.65,162.65,0,0,1,60.16,40.68q24.83,26.73,37.86,63.65t13,82.31q0,60.43-21.76,105.68t-64.85,70q-43.11,24.71-103.53,24.7-60.16,0-103.53-25.11t-65.66-70.76Q1409.87,543.57,1409.87,484.75Zm144.21,0q0,29,1.08,47.27a159.51,159.51,0,0,0,5.24,33.3q4.15,15,14.23,24.17t26.72,9.13q21.21,0,31.42-15.17t12.49-37.6q2.28-22.43,2.28-61.1,0-40.28-2.28-62.84t-12.36-37.06q-10.07-14.5-31.55-14.5-22,0-32.36,14.63T1556.37,422Q1554.07,444.48,1554.08,484.75Z" />
    </g>
    <g id="whiteStroke" stroke="#fff" stroke-miterlimit="10" stroke-width="8" fill="none">
      <path d="M354.88,584.92H512v93.46H208.51v-109q63.38-31.7,112.26-63.11,24.44-16.92,38.54-33.3a56.68,56.68,0,0,0,14.1-38.14q0-27.93-20.68-40.95t-50.76-13q-47.54,0-85.67,16.38v-101q30.62-5.64,60.69-8.87a571.63,571.63,0,0,1,60.7-3.22q73.85,0,124.07,29t50.22,98q0,31.43-14.1,57.74a172.85,172.85,0,0,1-36.39,46.59,307.24,307.24,0,0,1-45.92,34.78q-23.64,14.51-60.69,33.57Z"  />
      <path d="M555.61,484.75q0-43.5,12.49-80.16t36.79-63.92q24.3-27.26,60-41.89t82.18-14.64q43.77,0,79.09,14a162.57,162.57,0,0,1,60.16,40.68q24.84,26.73,37.86,63.65t13,82.31q0,60.43-21.75,105.68t-64.86,70q-43.1,24.71-103.53,24.7-60.15,0-103.53-25.11T577.9,589.22Q555.61,543.57,555.61,484.75Zm144.22,0q0,29,1.07,47.27a159.51,159.51,0,0,0,5.24,33.3q4.15,15,14.23,24.17t26.72,9.13q21.21,0,31.42-15.17T791,545.85q2.28-22.43,2.28-61.1,0-40.28-2.28-62.84t-12.35-37.06q-10.08-14.5-31.56-14.5-22,0-32.36,14.63T702.11,422Q699.83,444.48,699.83,484.75Z" />
      <path d="M982.74,484.75q0-43.5,12.49-80.16T1032,340.67q24.3-27.26,60-41.89t82.18-14.64q43.77,0,79.09,14a162.65,162.65,0,0,1,60.16,40.68q24.83,26.73,37.86,63.65t13,82.31q0,60.43-21.76,105.68t-64.85,70q-43.11,24.71-103.53,24.7-60.17,0-103.53-25.11T1005,589.22Q982.74,543.57,982.74,484.75Zm144.22,0q0,29,1.07,47.27a159.51,159.51,0,0,0,5.24,33.3q4.15,15,14.23,24.17t26.72,9.13q21.21,0,31.42-15.17t12.49-37.6q2.28-22.43,2.28-61.1,0-40.28-2.28-62.84t-12.35-37.06q-10.08-14.5-31.56-14.5-22,0-32.36,14.63T1129.24,422Q1127,444.48,1127,484.75Z" />
      <path d="M1409.87,484.75q0-43.5,12.49-80.16t36.79-63.92q24.3-27.26,60-41.89t82.18-14.64q43.77,0,79.09,14a162.65,162.65,0,0,1,60.16,40.68q24.83,26.73,37.86,63.65t13,82.31q0,60.43-21.76,105.68t-64.85,70q-43.11,24.71-103.53,24.7-60.16,0-103.53-25.11t-65.66-70.76Q1409.87,543.57,1409.87,484.75Zm144.21,0q0,29,1.08,47.27a159.51,159.51,0,0,0,5.24,33.3q4.15,15,14.23,24.17t26.72,9.13q21.21,0,31.42-15.17t12.49-37.6q2.28-22.43,2.28-61.1,0-40.28-2.28-62.84t-12.36-37.06q-10.07-14.5-31.55-14.5-22,0-32.36,14.63T1556.37,422Q1554.07,444.48,1554.08,484.75Z" />
    </g>
  </g>
  <g id="textCovers" stroke="#88ce02" stroke-miterlimit="10" stroke-width="4">
    <path id="cutPath1" d="M520,686.38V576.92H385.14c13.24-7.18,24.82-13.82,34.61-19.82a317,317,0,0,0,47.13-35.68,181.91,181.91,0,0,0,38.05-48.73A128.75,128.75,0,0,0,520,411.17c0-48.86-18.24-84.17-54.22-104.95-34.56-20-77.65-30.08-128.07-30.08a579.7,579.7,0,0,0-61.55,3.27c-20.15,2.16-40.77,5.17-61.29,8.95l-6.55,1.21V409.35l11.16-4.8c24.3-10.44,52.06-15.73,82.51-15.73,18.42,0,34.06,4,46.49,11.79,11.4,7.19,17,18.37,17,34.19a48.48,48.48,0,0,1-12.17,32.92c-8.88,10.32-21.3,21-36.91,31.86-32.19,20.69-69.67,41.75-111.39,62.61l-4.43,2.21v122Z" />
    <path id="cutPath2" d="M747.35,693.09c41.51,0,77.69-8.67,107.51-25.76a165.81,165.81,0,0,0,68.08-73.44c15-31.11,22.55-67.83,22.55-109.14,0-31-4.54-59.61-13.49-85-9-25.54-22.31-47.89-39.55-66.43a171.19,171.19,0,0,0-63.07-42.68c-24.38-9.64-52-14.53-82-14.53-31.88,0-60.54,5.13-85.21,15.24-24.84,10.18-46,25-63,44A192.87,192.87,0,0,0,560.78,402c-8.56,25.16-12.91,53-12.91,82.74,0,40.26,7.77,76.59,23.1,108,15.5,31.75,38.66,56.71,68.84,74.18C669.82,684.28,706,693.09,747.35,693.09Z" />
    <path id="cutPath3" d="M1174.35,693.09c41.51,0,77.69-8.67,107.51-25.76a165.81,165.81,0,0,0,68.08-73.44c15-31.11,22.55-67.83,22.55-109.14,0-31-4.54-59.61-13.49-85-9-25.54-22.31-47.89-39.55-66.43a171.19,171.19,0,0,0-63.07-42.68c-24.38-9.64-52-14.53-82-14.53-31.88,0-60.54,5.13-85.21,15.24-24.84,10.18-46,25-63,44A192.87,192.87,0,0,0,987.78,402c-8.56,25.16-12.91,53-12.91,82.74,0,40.26,7.77,76.59,23.1,108,15.5,31.75,38.66,56.71,68.84,74.18C1096.82,684.28,1133,693.09,1174.35,693.09Z" />
    <path id="cutPath4" d="M1601.35,693.09c41.51,0,77.69-8.67,107.51-25.76a165.81,165.81,0,0,0,68.08-73.44c15-31.11,22.55-67.83,22.55-109.14,0-31-4.54-59.61-13.49-85-9-25.54-22.31-47.89-39.55-66.43a171.19,171.19,0,0,0-63.07-42.68c-24.38-9.64-52-14.53-82-14.53-31.88,0-60.54,5.13-85.21,15.24-24.84,10.18-46,25-63,44a192.87,192.87,0,0,0-38.4,66.66c-8.56,25.16-12.91,53-12.91,82.74,0,40.26,7.77,76.59,23.1,108,15.5,31.75,38.66,56.71,68.84,74.18C1523.82,684.28,1560,693.09,1601.35,693.09Z" />
  </g>
<g id="message" mask="url(#textMask)"> 
 <text transform="translate(180 240)" font-size="150" fill="#fff">Thank you everyone!</text> 
  <text transform="translate(1000 800)" font-size="100" fill="#fff">GreenSock forum posts!   </text>
</g>
<circle  r="54" fill="#333" cx="1000" cy="1220" stroke="#333" stroke-width="6" />  
<g>
  <line class="laser" x1="1000" y1="1200" x2="1000" y2="1200" stroke-width="10" stroke="#88ce02" opacity="0.70" /> 
  <line class="laser" x1="1000" y1="1200" x2="1000" y2="1200" stroke-width="2" stroke="#fff" /> 
</g>
<circle  r="40" fill="#000" cx="1000" cy="1220" stroke="#88ce02" stroke-width="6"/>
  
<circle id="target" r="1" fill="#88ce02" cx="0" cy="0" />
    <g id="cannon">

      <g id="centerBody">
        <path d="M1962.32,1053.52c-11.92-19.8-76.77-80.6-100.36-102.42a10.73,10.73,0,0,0,1.88-13.37h0a10.71,10.71,0,0,0-14.71-3.65L1774.48,979a10.71,10.71,0,0,0-3.66,14.7h0a10.75,10.75,0,0,0,10.7,5.09c8.1,30.51,31.73,117.3,43.73,137.23,23,38.19,72.32,50.68,110.17,27.89S1985.32,1091.71,1962.32,1053.52Z" fill="#333"/>
        <path d="M1962.32,1053.52c-11.92-19.8-76.77-80.6-100.36-102.42a10.73,10.73,0,0,0,1.88-13.37h0a10.71,10.71,0,0,0-14.71-3.65L1809.4,958l124.51,206.79c.5-.28,1-.55,1.51-.85C1973.27,1141.15,1985.32,1091.71,1962.32,1053.52Z" fill="#4d4d4d"/>
        <path d="M1782.51,1002.54c4.87,18.24,13.77,50.82,22.72,79.7l118.9-71.59c-21.34-21.42-46-44.53-59.81-57.37Z" fill="gray"/>
        <path d="M1863.19,1047.34l60.94-36.69-.15-.16-1.8-1.79-.54-.55-1.44-1.43-.64-.63-1.35-1.35-.7-.69-1.31-1.29-.73-.72-1.27-1.25-.78-.77-1.24-1.22-.79-.77-1.22-1.2-.82-.8-1.21-1.17c-.27-.27-.54-.54-.82-.8l-1.2-1.17-.83-.8-1.18-1.15-.83-.8-1.22-1.18-.79-.76-1.21-1.17-.79-.76-1.26-1.21-.71-.69-1.46-1.39-.5-.48-1.83-1.75-.11-.11-5.81-5.53-.58-.54-1.3-1.25-.64-.59-1.18-1.12-.7-.66-1.15-1.09-.65-.61-1.09-1-.72-.68-1-1c-.23-.23-.47-.44-.7-.66l-1-1-.64-.6-1.08-1-.54-.5-1.07-1-.58-.55-1-.88-.65-.61-1-.91-.47-.43-1-1-.47-.44-1-1-.34-.32-2.67-2.48-42.39,25.53Z" fill="#b3b3b3"/>
      </g>
      <path id="wheel" d="M1959,1090.42a62.53,62.53,0,1,0,6.67,88.18A62.6,62.6,0,0,0,1959,1090.42Zm-4.77,74.81-19.61-16.85a20.44,20.44,0,0,0,2.8-6.45l25.77-2.37A44.07,44.07,0,0,1,1954.23,1165.23ZM1937.71,1134a19.22,19.22,0,0,0-2.9-7.42l16.28-19a45.31,45.31,0,0,1,11.6,24.08Zm-8.45-12.91a19,19,0,0,0-8.22-2.91l-1.5-25.13a45.3,45.3,0,0,1,25.8,9.33Zm-29.49,24.34a19,19,0,0,0,3.53,5.87L1887.22,1170a45.39,45.39,0,0,1-12.71-22.26Zm9.79,10.53a19.23,19.23,0,0,0,5.9,1.64l1.5,25.12a45.26,45.26,0,0,1-23.68-7.81Zm2.08-62.53,1.52,25.47a20.2,20.2,0,0,0-7.79,4.39l-19.61-16.85A44.14,44.14,0,0,1,1911.64,1093.39Zm-30.93,19.27,19.82,17a20.2,20.2,0,0,0-2,7.87l-25.17,2.31A44.27,44.27,0,0,1,1880.71,1112.66Zm44.15,69.65-1.52-25.48a20.29,20.29,0,0,0,5.64-2.69l19.82,17A44.24,44.24,0,0,1,1924.86,1182.31Z" fill="#e58a23"/>
      <path d="M1929.5,1146.78c-4.85,5.64-13.92,5.81-20.25.36s-7.54-14.43-2.69-20.08,13.92-5.81,20.26-.37S1934.36,1141.13,1929.5,1146.78Z" fill="#f8b12a"/>
      <path d="M1861.86,1123.22s13.05-45.23,56.45-42.9c49.23,2.64,58.25,41.62,58.25,41.62s-22.74-35-59.14-34.41C1883,1088.11,1861.86,1123.22,1861.86,1123.22Z" fill="#f8b12a"/>

  </g>
</svg>

<canvas id="canvas"></canvas>

              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #000;
}

#demo {
  font-family: "Yellowtail", cursive;
}

svg,
canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
}

              
            
!

JS

              
                console.clear();
PIXI.utils.skipHello();
TweenLite.defaultEase = Linear.easeNone;
TweenMax.set("#target, #demo, #canvas", {xPercent:-50, yPercent:-50, autoAlpha:1});
TweenMax.set("#textCovers path", {drawSVG:0});
TweenMax.set("#centerBody", {rotation:-25, svgOrigin:"1918 1137"});
CustomWiggle.create("theWiggle", {wiggles:10});
CustomEase.create("popUp", "M0,0,C0,0.91,0.288,1,1,1");

var cutDur = 2.5;
var moveDur = 0.75;
var ratio = 0.6;
var confettiColors = ["#a864fd", "#29cdff", "#78ff44", "#ff718d", "#fdff6a", "#f9a04b", "#f20c7c"];
var cp1 = MorphSVGPlugin.pathDataToBezier("#cutPath1", {align:"#target"});
var cp2 = MorphSVGPlugin.pathDataToBezier("#cutPath2", {align:"#target"});
var cp3 = MorphSVGPlugin.pathDataToBezier("#cutPath3", {align:"#target"});
var cp4 = MorphSVGPlugin.pathDataToBezier("#cutPath4", {align:"#target"});
var master = new TimelineMax({delay:0.5, onComplete:cleanUp});

var app = new PIXI.Application(2000, 1200, {
  view: document.querySelector("#canvas"),
  antialias: true,
  transparent: true
});

var container = new PIXI.Container();
app.stage.addChild(container);
var sparkGraphics = new PIXI.Graphics();
sparkGraphics.beginFill(0x88ce02).drawCircle(0, 0, 4);
var sparkTexture = sparkGraphics.generateCanvasTexture();

function cutTimeline(dur, cutPath, x, y, move, drawPath) {
  var tl = new TimelineMax();
  tl.to("#target", dur, {bezier:{values:cutPath, type:"cubic"}, onUpdate:updateAll});
  tl.to(drawPath, dur, {drawSVG:true}, 0);
  tl.to("#target", move, {x:x, y:y, onUpdate:updateLaser, onUpdateParams:[target._gsTransform ]});
  return tl;
}

function updateAll() {
  var data = this.target[0]._gsTransform;
  updateLaser(data);
  for (var i = 0; i < 7 ; i++) {
  createSpark(data.x, data.y);
  }
}

function updateLaser(data) {
  TweenMax.set(".laser", {attr:{x2:data.x, y2:data.y}});
}

function random(min, max) {
  return min + (max - min) * Math.random();
} 

function createSpark(x, y) {
  var sparkSprite = new PIXI.Sprite(sparkTexture);
  sparkSprite.blendMode = PIXI.BLEND_MODES.SCREEN;
  TweenMax.set(sparkSprite, {
    pixi:{
      x:x, 
      y:y, 
      autoAlpha: random(0.1, 0.5), 
      scale: random(0.1, 1)
    }
  });
  container.addChild(sparkSprite);
  var tl = new TimelineMax();
  tl.to(sparkSprite, random(0.25, 0.45), {
    pixi: { 
      y: random(y-1, y-200), 
      x: random(x-75, x+75), 
      autoAlpha:1 
    },
    ease: Circ.easeOut
  });
  tl.to(sparkSprite, random(0.5, 0.75), {
    pixi: { 
      y: random(1300, 1700), 
      x: random(x-100, x+100),
      autoAlpha: 0.2 
    },
    ease: Circ.easeIn
  });
  
}

function createConfetti() {
  var boom = new TimelineMax();
  var confettiGraphics = new PIXI.Graphics();
  confettiGraphics.beginFill("0xFFFFFF").drawCircle(0, 0, 6);
  var confettiTexture = confettiGraphics.generateCanvasTexture();
  for (var i = 0; i < 1800 ; i++) {
  color = Math.floor(Math.random() * confettiColors.length);
  var confettiSprite = new PIXI.Sprite(confettiTexture);
  container.addChild(confettiSprite);

  TweenMax.set(confettiSprite, {
    pixi:{
      x:1830, 
      y:950,
      alpha:random(0.75, 1),
      skewX: random(0, 12),
      scaleY: random(0.1, 1),
      scaleX:random(0.25, 1),
      tint: confettiColors[color]
    }
  });
  var tl = new TimelineMax();
  tl.to(confettiSprite, random(0.25, 0.8), {
    pixi: { 
      y: random(-300, 750), 
      x: random(-100, 2100) 
    },
    ease: "popUp"
  });
  tl.from(confettiSprite, random(0.1, 0.5), {
    pixi: { 
      autoAlpha:0 
    },
    ease: Circ.easeOut
  }, 0);    
  tl.to(confettiSprite, random(8, 18), {
    pixi: { 
      y: random(1300, 1500), 
      x: random(-100, 2300), 
      rotation: random(-720, 720)
    },
    ease: Sine.easeIn
  });
    boom.add(tl, 0);
  }
  return boom;
}

function cleanUp() {
  app.destroy();
  app = null;
}


function newSize() {
  var w = window.innerWidth * 0.9;
  var h = window.innerHeight * 0.9;
  if (h / w >= ratio) {
    TweenMax.set("#demo", { attr: { width: w, height: w * ratio } });
    if(app) {app.renderer.resize(w, w * ratio);}
    newScale = w / 2000;
  } else {
    TweenMax.set("#demo", { attr: { width: h / ratio, height: h } });
    if(app) {app.renderer.resize(h / ratio, h);}
    newScale = h / 1200;
  }
 if(app) {TweenMax.set(container, { pixi: { scale: newScale } });}
}

master.to(".laser", 0.5, {attr:{x2:523, y2:689.38}});
master.add(cutTimeline(cutDur*1.5, cp1, 757.35, 703.09, moveDur, "#cutPath1"));
master.add(cutTimeline(cutDur, cp2, 1184.35, 703.09, moveDur, "#cutPath2"));
master.add(cutTimeline(cutDur, cp3, 1611.35, 703.09, moveDur, "#cutPath3"));
master.add(cutTimeline(cutDur, cp4, 1611.35, 703.09, 0, "#cutPath4"));
master.set("#target", {autoAlpha:0});
master.to(".laser", 0.35, {attr:{x2:1000, y2:1200}});
master.add("coverFlip");
master.staggerTo("#textCovers path", 1, {rotation:180, ease:Power4.easeIn, transformOrigin:"center 92%"}, 0.25, "coverFlip");
master.staggerTo("#textCovers path", 3, {rotation:215, ease:"theWiggle"}, 0.25, "coverFlip+=1");
master.staggerTo("#textCovers path", 1.5, {y:16000, ease:Power3.easeIn}, 0.25, "-=1.9");
master.add("textReveal", "-=1");
master.to("#maskGradient", 2, {attr:{x1:1700, x2:2900}},"textReveal");
master.to(".maskRect", 2, {rotation:0.01},"textReveal"); // needed for MS Edge mask fussiness
master.add("cannonMove", "-=1");
master.from("#cannon", 3, {x:400, ease:Power2.easeOut}, "cannonMove");
master.to("#wheel", 3, {rotation:-360, svgOrigin:"1918 1137", ease:Power2.easeOut}, "cannonMove");
master.to("#centerBody", 1.6, {rotation:5, svgOrigin:"1918 1137", ease:Sine.easeInOut});
master.add(createConfetti(),"+=1");

newSize();
window.addEventListener("resize", newSize);

              
            
!
999px

Console