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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  viewBox="0 0 800 600" enable-background="new 0 0 800 600" xml:space="preserve">
  <defs>
    <clipPath id="svgClip">
      <rect fill="none" width="800" height="600" />
    </clipPath>
  </defs>
  <g id="bodyGroup" clip-path="url(#svgClip)">
	<g id="arms">
		<path fill="#F9CC17" d="M273.45,600c9.19-22.62,16.88-48.03,20.72-75.22c5.33-37.72-12.37-54.2-39.3-40.06
			c-4.27,2.25-8.78,5.26-13.47,9.09c-0.71,0.58-1.4,1.19-2.08,1.82c-16.66,15.72-50.96,52.09-74.79,104.37l-25.059,55.064
			l113.376,0.31L273.45,600z"/>
		<path fill="#F9CC17" d="M499.34,600"/>
		<path fill="#F9CC17" d="M499.34,600c-9.16-22.67-16.82-48.13-20.62-75.36c-5.22-37.48,12.23-53.96,38.83-40.27
			c4.43,2.27,9.13,5.4,14.01,9.4c0.71,0.58,1.4,1.19,2.07,1.83c16.61,15.74,50.81,52.14,74.53,104.4l20.776,53.141l-107.566,1.923
			L499.34,600z"/>
	</g>
    <path id="body" fill="#FFDA03" d="M561.228,655.025l-358.698,0.349c2.23-6.44,30.12-67.844,32.08-73.324
		c11.13-31.04,17.2-70.78,20.26-97.33c2-17.33,2.72-69.04,2.72-69.04s-6.89-22.98,39.45,7.66c45.4,30.02,87.48,21.07,89.16,20.69
		v-0.05c0,0,42.88,9.96,89.23-20.68c46.34-30.63,39.44-7.66,39.44-7.66s0.71,51.57,2.68,68.73c3.06,26.55,9.14,66.48,20.3,97.65
		C539.82,587.51,558.988,648.575,561.228,655.025z" />
    <path id="headShadow" fill="#F9CC17" d="M297.773,476.931c0,0,84.134,97.697,176.507,3.292
		C474.28,480.223,383.529,516.467,297.773,476.931z" />
  </g>
  <g id="headGroup">
    <g id="head">
      <g id="ears">
        <g id="earL">
          <path fill="#F9CC17" d="M509.938,241.097C672.132,145.864,691.904,47,691.904,47C579.361,67.604,498.817,156.125,465.271,199.59
					c-5.396,10.095-5.559,16.907-1.635,24.247c2.81,5.256,7.225,9.479,12.363,12.5l9.775,5.749
					C493.482,245.799,502.56,245.429,509.938,241.097z" />
          <path fill="#010000" d="M557.518,108.232c0,0,58.632-14.774,74.861,36.791c1.311-1.184,51.182-55.09,59.525-98.024
					C691.904,47,629.203,53.933,557.518,108.232z" />
        </g>
        <g id="earR">
          <path fill="#F9CC17" d="M290.647,170.25C177.868,57.295,108.096,62.886,108.096,62.886
					c41.904,108.419,133.542,158.571,178,177.222l7.288,2.577c4.464,1.553,16.986-5.308,20.881-9.742
					c8.634-10.091,7.663-20.304,0.721-31.151C306.569,188.642,299.739,179.356,290.647,170.25z" />
          <path fill="#191919" d="M187.186,177.475c0,0-21.796-48.489,24.308-74.246c-1.351-1.101-61.91-41.631-103.398-40.342
					C108.096,62.886,122.635,118.235,187.186,177.475z" />
        </g>
      </g>
<!--       <g id="spikes">
        <path fill="#F9CC17" d="M387.368,114.458c0,0-25.311,19.244-34.233,37.692c-8.598,17.776,27.188,0.357,27.188,0.357
				L387.368,114.458z" />
        <path fill="#F9CC17"
          d="M410.119,114.779c0,0-18.477,9.656-27.485,27.943s20.253,11.902,20.253,11.902L410.119,114.779z" />
      </g> -->
      <path id="face" fill="#FFDA03" d="M396.321,134.321c-2.088-0.069-4.184-0.104-6.288-0.104c-0.241,0.008-0.482,0.015-0.723,0.024
			c-0.241-0.008-0.482-0.016-0.723-0.024c-2.104,0-4.2,0.035-6.288,0.104c-111.87,3.701-193.157,108.169-173.171,218.302
			c10.317,45.21,18.098,80.369,79.872,122.715c23.101,13.923,48.086,22.826,73.672,26.055c3.649,0.301,7.232,0.88,10.872,1.091
			c0,0,0.164,0.016,0.482,0.045c10.168,0.934,20.401,0.934,30.569,0c0.319-0.029,0.482-0.045,0.482-0.045
			c3.639-0.212,7.222-0.791,10.872-1.091c25.586-3.23,50.571-12.133,73.672-26.055c61.774-42.347,69.554-77.505,79.871-122.715
			C589.478,242.491,508.19,138.022,396.321,134.321z" />
      <g id='redDots'>
        <circle fill="#E22C20" cx="508.294" cy="402.746" r="27.266" />
        <circle fill="#E22C20" cx="268.534" cy="403.465" r="26.662" />
      </g>
      <path id="nose" fill="#010000"
        d="M413.339,349.318c-2.921-6.166-16.138-7.251-23.985-7.329v-0.001c-0.015,0-0.03,0-0.044,0.001
			c-0.015,0-0.03,0-0.044-0.001v0.001c-7.847,0.078-21.065,1.163-23.985,7.329c-4.049,8.547,6.68,18.715,14.923,22.62
			c2.576,1.22,5.831,1.785,9.118,1.723c3.287,0.062,6.521-0.503,9.096-1.723C406.659,368.033,417.388,357.864,413.339,349.318z" />
<!--       		<path id="nose" fill="#010000" d="M413.339,359.318c-2.921-6.166-16.138-7.251-23.985-7.329v-0.001c-0.015,0-0.03,0-0.044,0.001
			c-0.015,0-0.03,0-0.044-0.001v0.001c-7.847,0.078-21.065,1.163-23.985,7.329c-4.049,8.547,6.68,18.715,14.923,22.62
			c2.576,1.22,5.831,1.785,9.118,1.723c3.287,0.062,6.521-0.503,9.096-1.723C406.659,378.033,417.388,367.864,413.339,359.318z"/> -->
      <g id="eyes">
        <g id="eyeL">
          <g>
            <circle fill="#010000" cx="311.785" cy="308.235" r="28.236" />
            <circle id="iris" fill="#FFFFFF" cx="327.073" cy="304.585" r="8.531" />
          </g>
        </g>
        <g id="eyeR">
          <g>
            <circle fill="#010000" cx="466.834" cy="308.235" r="28.236" />
            <circle id="iris" fill="#FFFFFF" cx="452.256" cy="304.585" r="8.531" />
          </g>
        </g>
      </g>
      <g id="mouthGroup">
        <g id="mouth">
          <path fill="#7B2021" d="M357.516,421.311c0,0,5.89,40.442,31.533,40.442c25.643,0,31.977-42.182,31.977-42.182l-2.137-0.179
					c-4.203-0.493-8.079-1.384-11.878-3.094l0,0c-1.182-0.419-2.318-0.955-3.388-1.61c0,0-11.36-6.417-16.037-6.417
					c-3.199-0.001-10.36,4.03-14.446,6.695c-3.496,2.28-7.454,4.027-11.419,5.332C360.103,420.828,357.516,421.311,357.516,421.311z
					" />
          <path fill="#D6757D" d="M413.348,443.232c0,0-7.149-9.688-24.431-10.221s-24.356,10.373-24.356,10.373
					s7.411,18.488,24.488,18.37C406.127,461.634,413.348,443.232,413.348,443.232z" />
        </g>
        <path id="mouthLine" fill="none" stroke="#645200" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10"
          d="
			M447.62,407.584c0,0-2.734,8.821-16.972,11.411c-10.031,1.824-20.361-0.291-29.212-5.35c-4.442-2.539-9.933-5.177-13.85-5.375
			l-0.337,0.011c-3.895,0.453-9.203,3.445-13.469,6.269c-8.502,5.627-18.672,8.412-28.8,7.247
			c-14.377-1.654-17.681-10.277-17.681-10.277" />

      </g>
      <g id="brows">
        <line fill="none" stroke="#645200" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="342.362"
          y1="290.073" x2="296.934" y2="271.901" />
        <line fill="none" stroke="#645200" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" x1="437.57"
          y1="291.851" x2="481.028" y2="268.146" />
      </g>
      <g id="lightningGroupL">
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M267.243,405.352c0,0,5.635,6.886,21.743,0.207l17.679-4.322c0,0,4.332-3.404,9.426-0.051c1.174,0.773,2.707,0.638,3.707-0.351
				c2.56-2.533,7.321-5.758,9.916,1.843c0,0,3.012,7.727,11,7.465" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M257.59,415.68c0,0-5.974,4.763-7.459,13.99c-0.225,1.399-0.761,2.744-1.626,3.867c-0.645,0.837-1.277,1.846-1.277,2.584
				c0,1.507,1.413,5.558-1.696,9.702s-5.464,8.76-5.087,11.681" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M247.02,398.555c0,0-8.445-0.571-16.535,4.972c-1.734,1.188-3.77,1.86-5.868,1.728c-2.052-0.129-4.631-0.066-6.289,0.826
				c-2.539,1.367-5.834,4.355-10.11,5.33c-2.131,0.486-4.003,1.75-5.272,3.529c-1.627,2.282-3.432,5.212-3.432,6.819" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M273.608,388.524c0,0,2.18-7.411,7.084-8.501c4.904-1.09,3.378-7.193,3.378-7.193" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M290.114,380.653c0,0,5.778-1.686,9.618-7.968c0.582-0.953,1.375-1.773,2.341-2.333c0.721-0.418,1.483-0.964,1.703-1.501
				c0.451-1.099,0.631-4.473,4.136-6.565s6.601-4.752,7.199-6.993" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M233.426,445.774c0,0-2.18,7.411-7.084,8.501c-4.904,1.09-3.378,7.193-3.378,7.193" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M270.722,419.943c0,0,2.682,3.426,6.789,3.482s2.776,8.572,2.776,8.572s4.607,5.102,6.988,6.018c0,0-2.197,2.646-1.791,2.976
				c0.405,0.33,1.187,3.475,4.656,5.736" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M250.925,386.824c0,0-20.299-2.948-22.288-9.301c-1.988-6.353-10.384-33.178-10.384-33.178s-8.239-3.241-11.112-2.093
				c-2.874,1.148-21.727-36.909-22.268-38.637c-0.541-1.728-10.362-0.363-13.482,4.219l-22.665-19.665
				c0,0-16.087,2.567-19.878,6.221c-3.791,3.654-12.388,10.14-16.17,10.185c-2.357,0.028-2.996,2.246-3.143,3.913
				c-0.101,1.142-0.932,2.087-2.032,2.409l-7.008,2.046l-9.214,5.73c0,0-13.075,22.5-31.159,2.92l-1.935-6.184
				c0,0-12.497-12.642,0.801-19.271l3.824-2.335c0,0-3.409-13.926,1.256-18.422s10.499-7.081,10.499-7.081l2.413-15.938
				c0,0-4.7-18.352-26.06-11.366c-1.919,0.627-3.496,2.12-4.099,4.046c-1.993,6.36-2.402,14.854-2.402,14.854
				s1.331,5.466,5.782,3.315" />
        <path fill="none" stroke="#FFCB4A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M248.998,412.906c-1.292-0.576-2.644-0.934-4.011-1.126c-8.271-1.161-16.093,3.881-19.254,11.612
				c-5.375,13.148-15.299,13.325-15.299,13.325s-36.745-5.041-33.144,5.035c2.639,7.384-2.982,14.626-6.173,17.967
				c-1.161,1.216-1.429,3.019-0.678,4.524c0.915,1.834,2.309,4.681,4.2,8.685c2.257,4.779,1.463,7.743,0.485,9.338
				c-0.74,1.208-0.531,2.778,0.593,3.64c6.615,5.072,25.109,7.687,31.173,7.892c6.867,0.232,18.04,17.35,3.519,20.941
				c-11.465,2.836-13.554,12.527-13.926,16.48c-0.101,1.074-0.762,2.008-1.746,2.451l-3.393,1.526
				c-2.119,0.953-3.408,3.139-3.217,5.455l0.295,3.568c-10.931,17.325-37.174,7.131-40.892-1.151
				c-2.125-4.733-9.086-7.56-14.663-9.114c-4.613-1.285-9.554-0.54-13.636,1.964c-7.374,4.522-19.182,12.338-21.832,17.504
				c-3.92,7.643-23.322,8.503-23.322,8.503" />
      </g>
      <g id="lightningGroupR">
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M526.657,416.212c0,0,48.041,12.968,60.219,15.159c12.178,2.191,13.85,11.337,13.85,11.337s0.17,11.757,0.17,14.586
				c0,2.83,20.475,23.432,20.475,23.432c4.812,6.847-7.847,19.166-7.847,19.166c-13.601,13.366-3.931,24.685-3.931,24.685
				c6.206,5.587,12.248,12.013,15.987,16.139c2.117,2.337,3.371,5.367,3.306,8.52c-0.064,3.125,0.501,7.273,3.424,9.904
				c5.196,4.678,14.436,2.543,16.515,0.234c1.187-1.319,6.397-2.593,10.65-3.443c3.478-0.696,6.078-3.595,6.391-7.127l2.078-23.437
				c0,0,4.414-15.471,16.311-8.215c11.897,7.256,46.959-6.101,46.959-6.101" />
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M515.349,404.555c0,0,5.635,6.886,21.743,0.207l17.679-4.322c0,0,4.332-3.404,9.426-0.051c1.174,0.773,2.707,0.638,3.707-0.351
				c2.56-2.533,7.321-5.758,9.916,1.843c0,0,3.012,7.727,11,7.465" />
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M505.696,414.883c0,0-5.974,4.763-7.459,13.99c-0.225,1.399-0.761,2.744-1.626,3.867c-0.645,0.837-1.277,1.846-1.277,2.584
				c0,1.507,1.413,5.558-1.696,9.702c-3.109,4.145-5.464,8.76-5.087,11.681" />
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M495.126,408.025c0,0-8.445-0.572-16.535,4.972c-1.734,1.188-3.77,1.86-5.868,1.728c-2.052-0.129-4.631-0.066-6.289,0.826
				c-2.539,1.367-5.834,4.355-10.11,5.33c-2.131,0.486-4.003,1.75-5.272,3.529c-1.627,2.282-3.432,5.212-3.432,6.819" />
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M500.116,392.203c0,0-4.065-1.552-7.612,0.517c-3.548,2.069-6.799-5.913-6.799-5.913s-6.578-1.996-9.091-1.552
				c0,0,0.517-3.4,0-3.474c-0.517-0.074-2.809-2.365-6.947-2.513" />
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M542.978,376.803c0,0,7.221-2.107,12.021-9.957c0.728-1.191,1.718-2.216,2.925-2.915c0.901-0.522,1.853-1.204,2.128-1.876
				c0.563-1.373,0.789-5.59,5.169-8.205c4.38-2.614,8.249-5.939,8.997-8.74" />
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M515.962,419.943c0,0,3.732,4.766,9.445,4.845c5.713,0.079,3.863,11.926,3.863,11.926s6.409,7.098,9.722,8.372
				c0,0-3.056,3.681-2.492,4.141c0.564,0.459,1.651,4.834,6.478,7.98" />
        <path fill="none" stroke="#FFCB4A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"
          stroke-miterlimit="10" d="
				M518.907,386.824l13.23-26.249c0,0-6.404-17.193,3.258-20.734c9.662-3.54,20.353-20.071,20.353-20.071s-0.175-1.759-0.285-4.459
				c-0.292-7.197-0.117-21.081,5.094-26.148c7.165-6.968,12.706-8.193,13.593-13.837c0.887-5.643,5.371-15.782,5.371-15.782
				s9.861,6.248,14.814,2.328c4.953-3.92,12.486-8.158,17.555-5.916c5.069,2.242,10.899,4.243,10.899,4.243
				s12.516-17.55,23.707-19.768c11.191-2.217,3.104-19.752,3.104-19.752l-5.744-11.745c0,0,3.779-10.249,9.236-10.476
				c0,0,3.164-13.237,14.366-1.718c0,0,14.225,8.379,21.037,8.727c6.813,0.348,8.919,12.244,8.919,12.244" />
      </g>
    </g>
  </g>
</svg>
              
            
!

CSS

              
                html,body {
  height:100%;
}
body {
  display:flex;
  align-items:center;
  justify-content:center;
}
svg {
  width:100%;
  height:100vh;
  visibility:hidden;
}
#head {
  cursor:pointer;
}

              
            
!

JS

              
                gsap.set("svg", { visibility: "visible" });

const leftRight = gsap.timeline({ paused: true, defaults: { ease: "linear" } });
leftRight
  .fromTo(
    "#body",
    { rotation: -1, transformOrigin: "50% 100%" },
    { x: 0 },
    "left"
  )
  .fromTo("#arms", { x: 6 }, { x: 0 }, "left")
  .fromTo("#ears", { x: 14 }, { x: 0 }, "left")
  .fromTo("#brows", { x: 2 }, { x: 0 }, "left")
  .fromTo("#eyes", { x: 2 }, { x: 0 }, "left")
  .fromTo(
    "#head",
    { rotation: 4, transformOrigin: "50% 100%" },
    { rotation: 0 },
    "left"
  )
  .fromTo("#nose", { x: 6 }, { x: 0 }, "left")
  .fromTo(
    "#mouthGroup",
    { x: 0, rotation: 2, transformOrigin: "50% 50%" },
    { x: 0, rotation: 0 },
    "left"
  )
  .to("#arms", { x: -6 }, "right")
  .to("#ears", { x: -14 }, "right")
  .to("#eyes", { x: -2 }, "right")
  .to("#brows", { x: -2 }, "right")
  .to("#head", { rotation: -4, transformOrigin: "50% 100%" }, "right")
  .to("#nose", { x: -6 }, "right")
  .to(
    "#mouthGroup",
    { x: 3, rotation: -2, transformOrigin: "50% 50%" },
    "right"
  )
  .to("#body", { rotation: 1, transformOrigin: "50% 100%" }, "right");

const upDown = gsap.timeline({ paused: true, defaults: { ease: "linear" } });
upDown
  .fromTo(
    "#earL",
    { rotation: 5, transformOrigin: "50% 100%" },
    { rotation: 0 },
    "up"
  )
  .fromTo(
    "#earR",
    { rotation: 5, transformOrigin: "50% 100%" },
    { rotation: 0 },
    "up"
  )
  .fromTo("#ears", { y: 6 }, { y: 0 }, "up")
  .fromTo("#brows", { y: -6 }, { y: 0 }, "up")
  .fromTo("#redDots", { y: 3 }, { y: 0 }, "up")
  .fromTo("#mouthGroup", { y: -6 }, { y: 0 }, "up")
  .fromTo(
    "#mouth",
    { scale: 0.75, transformOrigin: "50% 0%" },
    { scale: 1 },
    "up"
  )
  .fromTo("#eyes", { y: -6 }, { y: 0 }, "up")
  .fromTo("#nose", { y: -6 }, { y: 0 }, "up")
  .fromTo("#arms", { y: 6 }, { y: 0 }, "up")
  .to("#ears", { y: -6 }, "down")
  .to("#redDots", { y: -3 }, "down")
  .to("#mouthGroup", { y: 6 }, "down")
  .to("#brows", { y: 6 }, "down")
  .to("#eyes", { y: 6 }, "down")
  .to("#nose", { y: 6 }, "down")
  .to("#earL", { rotation: -24, transformOrigin: "50% 100%" }, "down")
  .to("#earR", { rotation: 24, transformOrigin: "50% 100%" }, "down")
  .to("#arms", { y: -6 }, "down");

const lightning = gsap.timeline({
  paused: true,
  defaults: { duration: 0.16, ease: "linear" }
});

gsap.set("#lightningGroupL path", { drawSVG: "0% 0%" });
gsap.set("#lightningGroupR path", { drawSVG: "0% 0%" });

lightning
  .to("#brows", { opacity: 1 }, "lightning")
  .to(
    "#lightningGroupL path",
    { drawSVG: "0% 35%", stagger: 0.02 },
    "lightning"
  )
  .to(
    "#lightningGroupR path",
    { drawSVG: "0% 35%", stagger: 0.02 },
    "lightning"
  )
  .to(
    "#lightningGroupL path",
    { drawSVG: "35% 100%", stagger: 0.02 },
    "lightning+=0.02"
  )
  .to(
    "#lightningGroupR path",
    { drawSVG: "35% 100%", stagger: 0.02 },
    "lightning+=0.02"
  )
  .to(
    "#lightningGroupL path",
    { drawSVG: "100% 100%", stagger: 0.02, opacity: 0 },
    "lightning+=0.08"
  )
  .to(
    "#lightningGroupR path",
    { drawSVG: "100% 100%", stagger: 0.02, opacity: 0, duration: 0.2 },
    "lightning+=0.08"
  )
  .to("body", { background: "#3B4CCA" }, "lightning")
  .to("body", { background: "#FFF" }, "lightning+=0.32")
  .to("#brows", { opacity: 0 }, "lightning+=0.48");

window.addEventListener("mousemove", e => {
  x = e.clientX / window.innerWidth;
  y = e.clientY / window.innerHeight;
  gsap.set("#iris", { y: y * 12 });
  gsap.set(leftRight, { progress: x });
  gsap.set(upDown, { progress: y });
});

gsap.set("#brows", { opacity: 0 });
document.querySelector("#head").addEventListener("click", () => {
  gsap.to("#nose", {
    scale: 1.1,
    transformOrigin: "50% 50%",
    duration: 0.16,
    ease: "sine",
    onComplete: () => {
      gsap.to("#nose", { scale: 1, duration: 0.16 });
    }
  });
  lightning.progress() === 1 ? lightning.restart() : lightning.play();
});

              
            
!
999px

Console