123

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.

            
              <div class="blinkBox">
  <svg version="1.1" viewBox="0 0 250 54" preserveAspectRatio="xMinYMin meet" class="svgBlink">
						<defs>
							<filter id="blurRed">
								<feGaussianBlur id="blurRedX" in="SourceGraphic" stdDeviation="0 0" />
							</filter>
							<filter id="blurBlue">
								<feGaussianBlur id="blurBlueX" in="SourceGraphic" stdDeviation="0 0" />
							</filter>
							<filter id="blurGreen">
								<feGaussianBlur id="blurGreenX" in="SourceGraphic" stdDeviation="0 0" />
							</filter>
						</defs>
						<g id="rectGrey">
							<rect class="backgroundBlack" width="250" height="54"/>
						</g>
						<g class="isolate">
							<svg id="logoGreen" x="0" y="0" filter="url(#blurGreen)">
								<g class="logoBlink" fill="#fff">
									<path id="logoBgreen" d="M29,43.395V9.589L36,8.05V23.736c.833-2.175,2.115-3.841,3.985-3.841,5.09,0,7.636,3.788,7.636,11.5A17.555,17.555,0,0,1,46.1,39.23a5.946,5.946,0,0,1-5.612,3.664c-2.3,0-3.572-1.271-4.492-4v3Zm7-15.413V34.9a6.745,6.745,0,0,0,.375,3.067q.713,1.5,1.633,1.5c1.472,0,2.993-3.283,2.993-8.573,0-5.382-1.521-7.435-2.993-7.435q-.921,0-1.633,1.477A6.626,6.626,0,0,0,36,27.981Z"/>
									<path id="logoLgreen" d="M48.162,10.594,57,8.708V42H50V13H49Z"/>
									<path id="logoI1green" d="M59,24l-.359-2.137L68,20V42l-7,1.483V24ZM64.5,9.895a2.4,2.4,0,0,1,1.766.742A2.448,2.448,0,0,1,67,12.422a2.355,2.355,0,0,1-.734,1.758,2.54,2.54,0,0,1-3.532,0A2.355,2.355,0,0,1,62,12.422a2.448,2.448,0,0,1,.734-1.786A2.393,2.393,0,0,1,64.5,9.895Z"/>
									<path id="logoNgreen" d="M90,28.119V42H83V28.119C83,25.421,81.778,24,80,24c-1.312,0-2,1.421-2,4.119V41.86l-7,1.518V21l6.445-.884L78,23.5a3.94,3.94,0,0,1,1.906-2.05,7.133,7.133,0,0,1,3.611-1.058,5.29,5.29,0,0,1,4.738,2.484A9.894,9.894,0,0,1,90,28.119Z"/>
									<path id="logoKgreen" d="M93,9.895l7-1.8v33.8l-7,1.483ZM105.8,21h6.946l-5.7,8.315L112.888,42h-8L100,30Z"/>
								</g>
								<g class="logoAmpersand" fill="#7f7f7f">
									<path id="logoAmpgreen" d="M132.6,34.484l2.4-3.116v5.7L139.978,42h-9.143l-.943,1.341a8.162,8.162,0,0,1-6.519,2.87,8.041,8.041,0,0,1-5.945-2.3,8.61,8.61,0,0,1-2.419-6.437,7.6,7.6,0,0,1,1.312-4.223,9.334,9.334,0,0,1,3.239-3.034l-2.05-2.542a7.656,7.656,0,0,1-1.763-4.961,7.164,7.164,0,0,1,2.234-5.309,7.419,7.419,0,0,1,5.392-2.194,7.524,7.524,0,0,1,5.37,2.009A7.224,7.224,0,0,1,131,22.717q0,3.65-3.689,6.191Zm-4.183,5.061-7.3-7.749a6.693,6.693,0,0,0-2.706,5.576,4.9,4.9,0,0,0,1.538,3.69,5.116,5.116,0,0,0,3.67,1.476,4.782,4.782,0,0,0,3.648-1.722Zm-.573-17.056q0-4.469-3.362-4.469a2.905,2.905,0,0,0-2.111.922,2.863,2.863,0,0,0-.923,2.071,2.547,2.547,0,0,0,.574,1.6l3.607,4.469A5.189,5.189,0,0,0,127.842,22.489Z"/>
								</g>
								<g class="logoTwitch" fill="#fff">
									<path id="logoTgreen" d="M144.23,42a2.84,2.84,0,0,1-2.395-.978A4.186,4.186,0,0,1,141,38.285V25h-3l10-10v7h3v3h-3V38.285a3.54,3.54,0,0,0,.644,2.554c.616.689,1.4.661,2.356.661V42Z"/>
									<path id="logoWgreen" d="M168.191,27.659l-3.956,13.893-6.348,1.655L151.724,21h7.314l3.542,13.237,3.22-12.052-.414-.966,6.348-2.9L176.2,29.867,179.737,21h4.37l-9.384,23.542Z"/>
									<path id="logoI2green" d="M184,24l-.359-2.137L193,20V42l-7,1.483V24Zm5.5-14.105a2.4,2.4,0,0,1,1.766.742A2.448,2.448,0,0,1,192,12.422a2.355,2.355,0,0,1-.734,1.758,2.54,2.54,0,0,1-3.532,0A2.355,2.355,0,0,1,187,12.422a2.448,2.448,0,0,1,.734-1.786A2.393,2.393,0,0,1,189.5,9.895Z"/>
									<path id="logoT2green" d="M200.23,42a2.84,2.84,0,0,1-2.395-.978A4.186,4.186,0,0,1,197,38.285V25h-3l10-10v7h3v3h-3V38.285a3.54,3.54,0,0,0,.644,2.554c.616.689,1.4.661,2.356.661V42Z"/>
									<path id="logoCgreen" d="M207.693,31.4a12.893,12.893,0,0,1,2.53-7.974,8.186,8.186,0,0,1,6.854-3.6A6.4,6.4,0,0,1,222,22.43V24.1q-.737-.276-1.5-.552a5.025,5.025,0,0,0-1.726-.276,3.376,3.376,0,0,0-2.943,1.978,12.135,12.135,0,0,0-1.288,6.164,12.355,12.355,0,0,0,1.288,6.256,3.312,3.312,0,0,0,2.943,1.933,4.9,4.9,0,0,0,1.68-.276q.759-.275,1.541-.552v1.655a6.369,6.369,0,0,1-4.876,2.484,8.283,8.283,0,0,1-7.084-3.641A13.166,13.166,0,0,1,207.693,31.4Z"/>
									<path id="logoHgreen" d="M231,41.895l-7,1.483V9.522l7-1.627V23.8a5.4,5.4,0,0,1,2.278-2.346,7.183,7.183,0,0,1,3.625-1.058,5.314,5.314,0,0,1,4.756,2.484A9.75,9.75,0,0,1,243,28.119V42h-7V28.119c0-2.7-.746-4.048-2.524-4.048S231,25.421,231,28.119Z"/>
								</g>
							</svg>
  <svg id="logoRed" x="3" y="3" filter="url(#blurRed)">
								<g class="logoBlink" fill="#fff">
									<path id="logoBred" d="M29,43.395V9.589L36,8.05V23.736c.833-2.175,2.115-3.841,3.985-3.841,5.09,0,7.636,3.788,7.636,11.5A17.555,17.555,0,0,1,46.1,39.23a5.946,5.946,0,0,1-5.612,3.664c-2.3,0-3.572-1.271-4.492-4v3Zm7-15.413V34.9a6.745,6.745,0,0,0,.375,3.067q.713,1.5,1.633,1.5c1.472,0,2.993-3.283,2.993-8.573,0-5.382-1.521-7.435-2.993-7.435q-.921,0-1.633,1.477A6.626,6.626,0,0,0,36,27.981Z"/>
									<path id="logoLred" d="M48.162,10.594,57,8.708V42H50V13H49Z"/>
									<path id="logoI1red" d="M59,24l-.359-2.137L68,20V42l-7,1.483V24ZM64.5,9.895a2.4,2.4,0,0,1,1.766.742A2.448,2.448,0,0,1,67,12.422a2.355,2.355,0,0,1-.734,1.758,2.54,2.54,0,0,1-3.532,0A2.355,2.355,0,0,1,62,12.422a2.448,2.448,0,0,1,.734-1.786A2.393,2.393,0,0,1,64.5,9.895Z"/>
									<path id="logoNred" d="M90,28.119V42H83V28.119C83,25.421,81.778,24,80,24c-1.312,0-2,1.421-2,4.119V41.86l-7,1.518V21l6.445-.884L78,23.5a3.94,3.94,0,0,1,1.906-2.05,7.133,7.133,0,0,1,3.611-1.058,5.29,5.29,0,0,1,4.738,2.484A9.894,9.894,0,0,1,90,28.119Z"/>
									<path id="logoKred" d="M93,9.895l7-1.8v33.8l-7,1.483ZM105.8,21h6.946l-5.7,8.315L112.888,42h-8L100,30Z"/>
								</g>
								<g class="logoAmpersand" fill="#7f7f7f">
									<path id="logoAmpred" d="M132.6,34.484l2.4-3.116v5.7L139.978,42h-9.143l-.943,1.341a8.162,8.162,0,0,1-6.519,2.87,8.041,8.041,0,0,1-5.945-2.3,8.61,8.61,0,0,1-2.419-6.437,7.6,7.6,0,0,1,1.312-4.223,9.334,9.334,0,0,1,3.239-3.034l-2.05-2.542a7.656,7.656,0,0,1-1.763-4.961,7.164,7.164,0,0,1,2.234-5.309,7.419,7.419,0,0,1,5.392-2.194,7.524,7.524,0,0,1,5.37,2.009A7.224,7.224,0,0,1,131,22.717q0,3.65-3.689,6.191Zm-4.183,5.061-7.3-7.749a6.693,6.693,0,0,0-2.706,5.576,4.9,4.9,0,0,0,1.538,3.69,5.116,5.116,0,0,0,3.67,1.476,4.782,4.782,0,0,0,3.648-1.722Zm-.573-17.056q0-4.469-3.362-4.469a2.905,2.905,0,0,0-2.111.922,2.863,2.863,0,0,0-.923,2.071,2.547,2.547,0,0,0,.574,1.6l3.607,4.469A5.189,5.189,0,0,0,127.842,22.489Z"/>
								</g>
								<g class="logoTwitch" fill="#fff">
									<path id="logoTred" d="M144.23,42a2.84,2.84,0,0,1-2.395-.978A4.186,4.186,0,0,1,141,38.285V25h-3l10-10v7h3v3h-3V38.285a3.54,3.54,0,0,0,.644,2.554c.616.689,1.4.661,2.356.661V42Z"/>
									<path id="logoWred" d="M168.191,27.659l-3.956,13.893-6.348,1.655L151.724,21h7.314l3.542,13.237,3.22-12.052-.414-.966,6.348-2.9L176.2,29.867,179.737,21h4.37l-9.384,23.542Z"/>
									<path id="logoI2red" d="M184,24l-.359-2.137L193,20V42l-7,1.483V24Zm5.5-14.105a2.4,2.4,0,0,1,1.766.742A2.448,2.448,0,0,1,192,12.422a2.355,2.355,0,0,1-.734,1.758,2.54,2.54,0,0,1-3.532,0A2.355,2.355,0,0,1,187,12.422a2.448,2.448,0,0,1,.734-1.786A2.393,2.393,0,0,1,189.5,9.895Z"/>
									<path id="logoT2red" d="M200.23,42a2.84,2.84,0,0,1-2.395-.978A4.186,4.186,0,0,1,197,38.285V25h-3l10-10v7h3v3h-3V38.285a3.54,3.54,0,0,0,.644,2.554c.616.689,1.4.661,2.356.661V42Z"/>
									<path id="logoCred" d="M207.693,31.4a12.893,12.893,0,0,1,2.53-7.974,8.186,8.186,0,0,1,6.854-3.6A6.4,6.4,0,0,1,222,22.43V24.1q-.737-.276-1.5-.552a5.025,5.025,0,0,0-1.726-.276,3.376,3.376,0,0,0-2.943,1.978,12.135,12.135,0,0,0-1.288,6.164,12.355,12.355,0,0,0,1.288,6.256,3.312,3.312,0,0,0,2.943,1.933,4.9,4.9,0,0,0,1.68-.276q.759-.275,1.541-.552v1.655a6.369,6.369,0,0,1-4.876,2.484,8.283,8.283,0,0,1-7.084-3.641A13.166,13.166,0,0,1,207.693,31.4Z"/>
									<path id="logoHred" d="M231,41.895l-7,1.483V9.522l7-1.627V23.8a5.4,5.4,0,0,1,2.278-2.346,7.183,7.183,0,0,1,3.625-1.058,5.314,5.314,0,0,1,4.756,2.484A9.75,9.75,0,0,1,243,28.119V42h-7V28.119c0-2.7-.746-4.048-2.524-4.048S231,25.421,231,28.119Z"/>
								</g>
							</svg>
  <svg id="logoBlue" x="-3" y="-3" filter="url(#blurBlue)">
								<g class="logoBlink" fill="#fff">
									<path id="logoBblue" d="M29,43.395V9.589L36,8.05V23.736c.833-2.175,2.115-3.841,3.985-3.841,5.09,0,7.636,3.788,7.636,11.5A17.555,17.555,0,0,1,46.1,39.23a5.946,5.946,0,0,1-5.612,3.664c-2.3,0-3.572-1.271-4.492-4v3Zm7-15.413V34.9a6.745,6.745,0,0,0,.375,3.067q.713,1.5,1.633,1.5c1.472,0,2.993-3.283,2.993-8.573,0-5.382-1.521-7.435-2.993-7.435q-.921,0-1.633,1.477A6.626,6.626,0,0,0,36,27.981Z"/>
									<path id="logoLblue" d="M48.162,10.594,57,8.708V42H50V13H49Z"/>
									<path id="logoI1blue" d="M59,24l-.359-2.137L68,20V42l-7,1.483V24ZM64.5,9.895a2.4,2.4,0,0,1,1.766.742A2.448,2.448,0,0,1,67,12.422a2.355,2.355,0,0,1-.734,1.758,2.54,2.54,0,0,1-3.532,0A2.355,2.355,0,0,1,62,12.422a2.448,2.448,0,0,1,.734-1.786A2.393,2.393,0,0,1,64.5,9.895Z"/>
									<path id="logoNblue" d="M90,28.119V42H83V28.119C83,25.421,81.778,24,80,24c-1.312,0-2,1.421-2,4.119V41.86l-7,1.518V21l6.445-.884L78,23.5a3.94,3.94,0,0,1,1.906-2.05,7.133,7.133,0,0,1,3.611-1.058,5.29,5.29,0,0,1,4.738,2.484A9.894,9.894,0,0,1,90,28.119Z"/>
									<path id="logoKblue" d="M93,9.895l7-1.8v33.8l-7,1.483ZM105.8,21h6.946l-5.7,8.315L112.888,42h-8L100,30Z"/>
								</g>
								<g class="logoAmpersand" fill="#7f7f7f">
									<path id="logoAmpblue" d="M132.6,34.484l2.4-3.116v5.7L139.978,42h-9.143l-.943,1.341a8.162,8.162,0,0,1-6.519,2.87,8.041,8.041,0,0,1-5.945-2.3,8.61,8.61,0,0,1-2.419-6.437,7.6,7.6,0,0,1,1.312-4.223,9.334,9.334,0,0,1,3.239-3.034l-2.05-2.542a7.656,7.656,0,0,1-1.763-4.961,7.164,7.164,0,0,1,2.234-5.309,7.419,7.419,0,0,1,5.392-2.194,7.524,7.524,0,0,1,5.37,2.009A7.224,7.224,0,0,1,131,22.717q0,3.65-3.689,6.191Zm-4.183,5.061-7.3-7.749a6.693,6.693,0,0,0-2.706,5.576,4.9,4.9,0,0,0,1.538,3.69,5.116,5.116,0,0,0,3.67,1.476,4.782,4.782,0,0,0,3.648-1.722Zm-.573-17.056q0-4.469-3.362-4.469a2.905,2.905,0,0,0-2.111.922,2.863,2.863,0,0,0-.923,2.071,2.547,2.547,0,0,0,.574,1.6l3.607,4.469A5.189,5.189,0,0,0,127.842,22.489Z"/>
								</g>
								<g class="logoTwitch" fill="#fff">
									<path id="logoTblue" d="M144.23,42a2.84,2.84,0,0,1-2.395-.978A4.186,4.186,0,0,1,141,38.285V25h-3l10-10v7h3v3h-3V38.285a3.54,3.54,0,0,0,.644,2.554c.616.689,1.4.661,2.356.661V42Z"/>
									<path id="logoWblue" d="M168.191,27.659l-3.956,13.893-6.348,1.655L151.724,21h7.314l3.542,13.237,3.22-12.052-.414-.966,6.348-2.9L176.2,29.867,179.737,21h4.37l-9.384,23.542Z"/>
									<path id="logoI2blue" d="M184,24l-.359-2.137L193,20V42l-7,1.483V24Zm5.5-14.105a2.4,2.4,0,0,1,1.766.742A2.448,2.448,0,0,1,192,12.422a2.355,2.355,0,0,1-.734,1.758,2.54,2.54,0,0,1-3.532,0A2.355,2.355,0,0,1,187,12.422a2.448,2.448,0,0,1,.734-1.786A2.393,2.393,0,0,1,189.5,9.895Z"/>
									<path id="logoT2blue" d="M200.23,42a2.84,2.84,0,0,1-2.395-.978A4.186,4.186,0,0,1,197,38.285V25h-3l10-10v7h3v3h-3V38.285a3.54,3.54,0,0,0,.644,2.554c.616.689,1.4.661,2.356.661V42Z"/>
									<path id="logoCblue" d="M207.693,31.4a12.893,12.893,0,0,1,2.53-7.974,8.186,8.186,0,0,1,6.854-3.6A6.4,6.4,0,0,1,222,22.43V24.1q-.737-.276-1.5-.552a5.025,5.025,0,0,0-1.726-.276,3.376,3.376,0,0,0-2.943,1.978,12.135,12.135,0,0,0-1.288,6.164,12.355,12.355,0,0,0,1.288,6.256,3.312,3.312,0,0,0,2.943,1.933,4.9,4.9,0,0,0,1.68-.276q.759-.275,1.541-.552v1.655a6.369,6.369,0,0,1-4.876,2.484,8.283,8.283,0,0,1-7.084-3.641A13.166,13.166,0,0,1,207.693,31.4Z"/>
									<path id="logoHblue" d="M231,41.895l-7,1.483V9.522l7-1.627V23.8a5.4,5.4,0,0,1,2.278-2.346,7.183,7.183,0,0,1,3.625-1.058,5.314,5.314,0,0,1,4.756,2.484A9.75,9.75,0,0,1,243,28.119V42h-7V28.119c0-2.7-.746-4.048-2.524-4.048S231,25.421,231,28.119Z"/>
								</g>
							</svg>
  </g>
  <a id="pauseBtn" class="pausePlay">
    <g fill="#000000">
      <rect class="backgroundBlack" width="17" height="17" x="3" y="26" />
    </g>
    <g>
      <path id="pauseL" d="M19,27v15h-5V27H19 M19,26.1h-5c-0.5,0-0.9,0.4-0.9,0.9v15c0,0.5,0.4,0.9,0.9,0.9h5c0.5,0,0.9-0.4,0.9-0.9V27C19.9,26.5,19.5,26.1,19,26.1L19,26.1z" />
      <path id="pauseR" d="M9,27v15H4V27H9 M9,26.1H4c-0.5,0-0.9,0.4-0.9,0.9v15c0,0.5,0.4,0.9,0.9,0.9h5c0.5,0,0.9-0.4,0.9-0.9V27C9.9,26.5,9.5,26.1,9,26.1L9,26.1z" />
    </g>
  </a>
  </svg>
</div>
            
          
!
            
              $backgroundBlack: #000000;
$copyGrey1: #768593;

html,
body {
  height: 100%;
  background-color: $backgroundBlack;
}

.blinkBox {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.svgBlink {
  width: 80%;
}

.backgroundBlack {
  fill: $backgroundBlack;
}
.copyGrey {
  fill: #768593;
}
#logoRed .logoBlink,
#logoRed .logoTwitch {
  fill: #ff0000;
}
#logoRed .logoAmpersand {
  fill: #ff0000;
}
#logoGreen .logoBlink,
#logoGreen .logoTwitch {
  fill: #00ff00;
}
#logoGreen .logoAmpersand {
  fill: #00ff00;
}
#logoBlue .logoBlink,
#logoBlue .logoTwitch {
  fill: #0000ff;
}
#logoBlue .logoAmpersand {
  fill: #0000ff;
}
svg g {
  fill: inherit;
}
.isolate {
  isolation: isolate;
}
#logoRed,
#logoBlue,
#logoGreen {
  mix-blend-mode: screen;
}

a#pauseBtn {
  fill: $copyGrey1;
  background-color: $backgroundBlack;
  cursor: pointer;

  &:link,
  &:visited {
    fill: $copyGrey1;
  }

  &:hover,
  &:focus {
    fill: #ffffff;
  }
}

            
          
!
            
              var tl_master = new TimelineMax(),
  tl_twitchRed = new TimelineMax(),
  tl_twitchGreen = new TimelineMax(),
  tl_twitchBlue = new TimelineMax(),
  tl_blinkRed = new TimelineMax(),
  tl_blinkGreen = new TimelineMax(),
  tl_blinkBlue = new TimelineMax(),
  tl_quote = new TimelineMax(),
  pauseBtn = document.getElementById("pauseBtn");

function twitchRed() {
  tl_twitchRed.set("#logoRed", {
    attr: { x: randomPosRed(-3, 3), y: randomPosRed(-3, 3) },
    delay: randomDelayRed(0.1, 6),
    onComplete: twitchRed
  });

  function randomPosRed() {
    return Math.round(Math.random() * -6) + 3;
  }

  function randomDelayRed() {
    return Math.random() * 6;
  }
}

function twitchGreen() {
  tl_twitchGreen.set("#logoGreen", {
    attr: { x: randomPosGreen(-3, 3), y: randomPosGreen(-3, 3) },
    delay: randomDelayGreen(0.1, 6),
    onComplete: twitchGreen
  });

  function randomPosGreen() {
    return Math.round(Math.random() * -6) + 3;
  }

  function randomDelayGreen() {
    return Math.random() * 6;
  }
}

function twitchBlue() {
  tl_twitchBlue.set("#logoBlue", {
    attr: { x: randomPosBlue(-3, 3), y: randomPosBlue(-3, 3) },
    delay: randomDelayBlue(0.1, 6),
    onComplete: twitchBlue
  });

  function randomPosBlue() {
    return Math.round(Math.random() * -6) + 3;
  }

  function randomDelayBlue() {
    return Math.random() * 6;
  }
}

function blinkRed() {
  tl_blinkRed
    .to("#blurRedX", 0.2, {
      attr: { stdDeviation: "5 0" },
      delay: randomDelayBlinkRed(5, 10)
    })
    .to(
      "#blurRedX",
      0.2,
      { attr: { stdDeviation: "0 0" }, onComplete: blinkRed },
      "+=.2"
    );

  function randomDelayBlinkRed() {
    return Math.floor(Math.random() * 6) + 5;
  }
}

function blinkGreen() {
  tl_blinkGreen
    .to("#blurGreenX", 0.2, {
      attr: { stdDeviation: "5 0" },
      delay: randomDelayBlinkGreen(5, 10)
    })
    .to(
      "#blurGreenX",
      0.2,
      { attr: { stdDeviation: "0 0" }, onComplete: blinkGreen },
      "+=.2"
    );

  function randomDelayBlinkGreen() {
    return Math.floor(Math.random() * 6) + 5;
  }
}

function blinkBlue() {
  tl_blinkBlue
    .to("#blurBlueX", 0.2, {
      attr: { stdDeviation: "5 0" },
      delay: randomDelayBlinkBlue(5, 10)
    })
    .to(
      "#blurBlueX",
      0.2,
      { attr: { stdDeviation: "0 0" }, onComplete: blinkBlue },
      "+=.2"
    );

  function randomDelayBlinkBlue() {
    return Math.floor(Math.random() * 6) + 5;
  }
}

twitchRed();
twitchGreen();
twitchBlue();
blinkRed();
blinkGreen();
blinkBlue();

tl_master
  .add(tl_twitchRed, 0)
  .add(tl_twitchGreen, 0)
  .add(tl_twitchBlue, 0)
  .add(tl_blinkRed, 0)
  .add(tl_blinkGreen, 0)
  .add(tl_blinkBlue, 0);

pauseBtn.onclick = function() {
  tl_master.paused(!tl_master.paused());
  pauseBtn.innerHTML = tl_master.paused()
    ? '<g fill="#384047"><rect class="backgroundBlack" width="17" height="17" x="3" y="26"/></g><g><path id="playTriangle" d="M4,27l15,7.5L4,42V27m0-1a1,1,0,0,0-1,1V42a1,1,0,0,0,1.447.894l15-7.5a1,1,0,0,0,0-1.789l-15-7.5A1,1,0,0,0,4,26Z"/></g>'
    : '<g fill="#384047"><rect class="backgroundBlack" width="17" height="17" x="3" y="26"/></g><g><path id="pauseL" d="M19,27v15h-5V27H19 M19,26.1h-5c-0.5,0-0.9,0.4-0.9,0.9v15c0,0.5,0.4,0.9,0.9,0.9h5c0.5,0,0.9-0.4,0.9-0.9V27C19.9,26.5,19.5,26.1,19,26.1L19,26.1z"/><path id="pauseR" d="M9,27v15H4V27H9 M9,26.1H4c-0.5,0-0.9,0.4-0.9,0.9v15c0,0.5,0.4,0.9,0.9,0.9h5c0.5,0,0.9-0.4,0.9-0.9V27C9.9,26.5,9.5,26.1,9,26.1L9,26.1z"/></g>';
};

            
          
!
999px
🕑 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.

Console