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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 493.29 371.9">
	<g id="catfish">
		<g id="Fins_and_Tail" data-name="Fins and Tail">
			<g id="Fin_R" data-name="Fin R">
				<path id="Fin_R_Outline" data-name="Fin R Outline"
					d="M359,189.52l-8.3-11.86L402.25,189c16.14,3.05,54.09,11.46,54.15,23.27,0,0,4.69,7.77,2.85,10.77s.59,1.41.59,1.41,5.67,18.09,3.49,20.83c0,0-12.65,5.73-17.08,3.43L444.52,247l1.89,4.78s-5.1,4.22-13.46,2.83-10.71-2.1-11.09-2.94-1.46-2.79-1.46-2.79,1,7.85-7.28,7-10.56-5.58-10.56-5.58-18.71,3.83-21.8,1.72c-2.55-1.74-15.61-14.26-19.74-27.92V224l-.14-.53a1.24,1.24,0,0,0-.11-.36C354.38,201.66,359,189.52,359,189.52Z"
					transform="translate(0 0)" fill="#bab0a5" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="3.93" />
			</g>
			<g id="Fin_L" data-name="Fin L">
				<path id="Fin_L_Outline" data-name="Fin L Outline"
					d="M130.76,188.65l6.35-13L87.89,194.44c-15.48,5.39-51.64,19.28-49.83,30.95,0,0-3.41,8.37-1.12,11.07s-.36,1.48-.36,1.48-2.75,18.71-.15,21.09c0,0,13.41,3.82,17.42.89l1.46-1.86-1.12,5s5.71,3.42,13.75.82,10.26-3.66,10.49-4.54,1-3,1-3,.2,7.92,8.31,5.88,9.55-7.06,9.55-7.06,19.1,1,21.82-1.5c2.24-2.09,13.17-16.39,15.09-30.49v-.09a1.63,1.63,0,0,1,.06-.54c.06-.18,0-.25,0-.38C137.21,200,130.76,188.65,130.76,188.65Z"
					transform="translate(0 0)" fill="#bab0a5" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="3.93" />
			</g>
			<g id="Tail">
				<path id="Tail_Outline" data-name="Tail Outline"
					d="M221.24,320.2c1.86,18.49,8.15,38,23.4,49.09a12.76,12.76,0,0,0,1-7.51c2.68,1.85,6.52,1.22,9.11-.71s4.17-4.87,5.45-7.81a66.15,66.15,0,0,0,5.3-21.3c.2-2.6.29-5.36,1.72-7.55,2.1-3.21,6.34-4.19,10.18-4.83,15.13-2.54,30.88-4.12,44.26-11.45,5.77-3.17,11.52-8.63,10.55-15.09-17.65-15.54-38.24-27.42-58.68-39.18l-19.6-11.28a20.31,20.31,0,0,0-7-2.94c-4.59-.68-9,1.77-12.92,4.13-12,7.16-18,13.65-15.6,27.34C221.31,287.23,219.61,304,221.24,320.2Z"
					transform="translate(0 0)" fill="#bab0a5" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="3.43" />
			</g>
			<g id="Fin_Top" data-name="Fin Top">
				<path id="Fin_Top_Outline" data-name="Fin Top Outline"
					d="M274.31,52a207.69,207.69,0,0,0-24.57-.53c-8.19.3-4.33.63-11.88,1.78C249.4-5.11,261.3,1.74,261.3,1.74c20.93,2.77,9.7,27.47,9.7,27.47A88.72,88.72,0,0,1,274.31,52Z"
					transform="translate(0 0)" fill="#bab0a5" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="2.98" />
			</g>
		</g>
		<g id="Chest">
			<path id="Chest_Outline" data-name="Chest Outline"
				d="M347,170.27C311.09,169,310.37,150.83,246.08,152c-60.26,1-66.8,22.89-99.16,25.73-18.2,1.59-31.88-.66-43.69-10.26,12.32,45.09,65.37,90.84,146.78,92.59,91.89,2,128.79-55,137.29-101C376.84,167.79,364.1,170.89,347,170.27Z"
				transform="translate(0 0)" fill="#e5dfd3" stroke="#231f20" stroke-miterlimit="10" stroke-width="3.43" />
		</g>
		<g id="Whiskers_Lower" data-name="Whiskers Lower">
			<g id="Whisker_Lower_RI" data-name="Whisker Lower RI">
				<path
					d="M339.21,298.09,339,298c-22.12-15.17-40.28-42.69-48.58-73.62a1.46,1.46,0,0,1,.26-1.26,1.51,1.51,0,0,1,1.19-.61,1.33,1.33,0,0,1,1.18.72c3.5,6.34,6.42,13.07,9.25,19.58a204.16,204.16,0,0,0,10.29,21.4c8.29,14.3,17.22,24.95,27.3,32.55l.39.31-.14.53a.75.75,0,0,1-.72.53Z"
					transform="translate(0 0)" fill="#d7d1c4" />
				<path
					d="M291.87,223.17a.63.63,0,0,1,.57.36c7.34,13.26,11.91,27.82,19.55,41,7.13,12.29,16.07,24.15,27.48,32.76a.07.07,0,0,1,0,.1l-.05,0h0c-24.12-16.54-40.78-45.22-48.3-73.23a.82.82,0,0,1,.6-1l.18,0m0-1.39h0a2.2,2.2,0,0,0-1.74.88,2.14,2.14,0,0,0-.38,1.86,150.42,150.42,0,0,0,18.1,41.3c8.73,13.69,19.08,24.7,30.76,32.71l.35.24h.46a1.46,1.46,0,0,0,1.45-1.47,1.44,1.44,0,0,0-.56-1.14c-10-7.55-18.88-18.13-27.12-32.35A205.83,205.83,0,0,1,303,242.49c-2.83-6.52-5.75-13.27-9.28-19.63a2,2,0,0,0-1.78-1.08Z"
					transform="translate(0 0)" fill="#231f20" />
			</g>
			<g id="Whisker_Lower_RO" data-name="Whisker Lower RO">
				<path
					d="M382.67,283.48l-.23-.16c-2.94-2.27-5.95-4.54-8.87-6.74-8.75-6.6-17.81-13.41-26-21.2-8.57-8.19-20.31-19.41-24.83-31.89a1.62,1.62,0,0,1,.16-1.51,1.76,1.76,0,0,1,1.45-.71,1.86,1.86,0,0,1,1.44.67,104.15,104.15,0,0,1,6.08,8.65c1.67,2.55,3.39,5.19,5.28,7.62a161.64,161.64,0,0,0,15.3,16.84,391.49,391.49,0,0,0,30.9,27.08l.38.31-.14.53a.73.73,0,0,1-.72.51Z"
					transform="translate(0 0)" fill="#d7d1c4" />
				<path
					d="M324.36,222a1.12,1.12,0,0,1,.9.42c4.16,5.12,7.3,11,11.35,16.26A162.94,162.94,0,0,0,352,255.58a394.76,394.76,0,0,0,30.95,27.14c.05,0,0,.11-.05.11h0c-11.8-9.13-23.95-17.56-34.78-27.9-9.11-8.71-20.28-19.55-24.66-31.63a.94.94,0,0,1,.51-1.23,1,1,0,0,1,.49-.06m0-1.38h0a2.49,2.49,0,0,0-2,1,2.34,2.34,0,0,0-.24,2.13c4.58,12.64,16.38,23.92,25,32.16,8.17,7.81,17.24,14.64,26,21.25,2.91,2.19,5.93,4.46,8.87,6.74l.37.29H383a1.48,1.48,0,0,0,1.38-1,1.44,1.44,0,0,0-.47-1.6,395.45,395.45,0,0,1-30.85-27,159.7,159.7,0,0,1-15.35-16.81c-1.87-2.41-3.59-5-5.25-7.58a99.39,99.39,0,0,0-6.13-8.7,2.51,2.51,0,0,0-2-.93Z"
					transform="translate(0 0)" fill="#231f20" />
			</g>
			<g id="Whisker_Lower_LI" data-name="Whisker Lower LI">
				<path
					d="M184.5,303.81l-.24-.5-.17-.45.38-.38c9.43-8.32,17.49-19.6,24.61-34.47a206.2,206.2,0,0,0,8.54-22.1c2.29-6.7,4.67-13.63,7.66-20.21a1.33,1.33,0,0,1,1.22-.81,1.56,1.56,0,0,1,1.17.56,1.48,1.48,0,0,1,.32,1.2c-5.81,31.46-21.71,60.24-42.55,77l-.19.16Z"
					transform="translate(0 0)" fill="#d7d1c4" />
				<path
					d="M226.5,225.59a.82.82,0,0,1,.82.82s0,.07,0,.11C222.05,255,207.73,284.83,185,303.1h0a.08.08,0,0,1-.06-.1v0c10.68-9.42,18.66-21.91,24.78-34.7,6.56-13.69,9.95-28.54,16.21-42.31a.64.64,0,0,1,.59-.4m0-1.39a2,2,0,0,0-1.85,1.22c-3,6.61-5.38,13.55-7.68,20.26a205.75,205.75,0,0,1-8.52,22c-7.08,14.78-15.08,26-24.44,34.25a1.45,1.45,0,0,0,1,2.54h.49l.42-.32c11-8.85,20.44-20.59,28-34.89a149.52,149.52,0,0,0,14.75-42.47,2.16,2.16,0,0,0-.47-1.76,2.24,2.24,0,0,0-1.7-.81Z"
					transform="translate(0 0)" fill="#231f20" />
			</g>
			<g id="Whisker_Lower_LO" data-name="Whisker Lower LO">
				<path
					d="M140,292.46l-.24-.49-.17-.44.36-.38a390,390,0,0,0,28.64-29.29,161.7,161.7,0,0,0,13.91-17.92c1.69-2.56,3.19-5.32,4.65-8a99.84,99.84,0,0,1,5.38-9.08,1.85,1.85,0,0,1,1.52-.78,1.74,1.74,0,0,1,1.39.65,1.61,1.61,0,0,1,.25,1.44C192.18,241,181.37,253,173.48,261.83c-7.5,8.36-16,15.83-24.18,23-2.73,2.41-5.56,4.9-8.31,7.39l-.2.18h-.31Z"
					transform="translate(0 0)" fill="#d7d1c4" />
				<path
					d="M194.05,226.79a.94.94,0,0,1,1,.81.91.91,0,0,1,0,.4c-3.4,12.38-13.67,24-22.06,33.37-10,11.11-21.41,20.41-32.44,30.38h0c-.06,0-.11-.07-.06-.11a389.38,389.38,0,0,0,28.69-29.34,161.27,161.27,0,0,0,14-18c3.62-5.51,6.28-11.63,10-17a1.12,1.12,0,0,1,.95-.49m0-1.39a2.57,2.57,0,0,0-2.09,1.09,103.43,103.43,0,0,0-5.42,9.13c-1.45,2.66-3,5.4-4.62,7.94a158.67,158.67,0,0,1-13.93,17.82,390.39,390.39,0,0,1-28.58,29.24,1.42,1.42,0,0,0-.37,1.58,1.46,1.46,0,0,0,1.36.93H141l.44-.37c2.75-2.49,5.57-5,8.3-7.38,8.22-7.23,16.71-14.72,24.24-23.11,7.94-8.85,18.81-21,22.36-33.92a2.27,2.27,0,0,0-.36-2,2.44,2.44,0,0,0-1.94-.93Z"
					transform="translate(0 0)" fill="#231f20" />
			</g>
		</g>
		<g id="Upper_Body" data-name="Upper Body">
			<path id="Head_Top_BG" data-name="Head Top BG"
				d="M366.54,93.69A167.4,167.4,0,0,0,334,72.88C321.88,55.58,284.81,44,241.45,45.56c-43.06,1.6-78.9,15.74-89.86,33.71a166.48,166.48,0,0,0-31.5,23.55c-10.52,10.05-37,40.8-25.61,56.17,6.69,9,15.25,14,19.74,16.52,5.61,2.89,20.63,2.85,32.07,1.85,32.37-2.83,38.91-24.68,99.17-25.73,64.28-1.11,65,17,100.92,18.32,9.33.34,17.35-.45,24.43-2.64H371c.28,0,15.51-7.85,15-8.08a57.44,57.44,0,0,0,10.61-11.46C407.46,132.53,378.34,103.35,366.54,93.69Z"
				transform="translate(0 0)" fill="#bab0a5" stroke="#231f20" stroke-miterlimit="10" stroke-width="2.98" />
		</g>
		<g id="Whiskers_Upper" data-name="Whiskers Upper">
			<path id="Upper_Lip_Under_Whiskers" data-name="Upper Lip Under Whiskers"
				d="M244.74,130.13c55.48,2.53,118.31,28,131,33.32-1.62.89-5,2.4-5,2.39-7.08,2.2-15.1,3-24.43,2.65-35.91-1.32-36.64-19.44-100.92-18.32-60.26,1-66.85,22.42-99.16,25.73-20.32,2.08-32.26-2-32.34-2C127.46,165.26,189.82,127.62,244.74,130.13Z"
				transform="translate(0 0)" fill="#d7d1c4" />
			<g id="Whisker_Upper_R" data-name="Whisker Upper R">
				<path
					d="M267.53,144.83a1.57,1.57,0,0,1-1.6-1.48c-1.42-13.18,4.23-28.36,8.36-39.43,3.91-10.53,9.07-20.58,14.06-30.3,1.66-3.25,3.38-6.6,5-9.92l.19-.38h.13c2.82-6.11,2.83-6.11,3.29-6.11h.38l.21.31c.21.34.21.34-2.41,6.26-4.4,9.94-13.56,30.61-16.36,38.33a158.19,158.19,0,0,0-6.39,21.76c-.63,3-1,6.12-1.4,9.13a101.81,101.81,0,0,1-1.68,10.42,1.88,1.88,0,0,1-1.82,1.42Z"
					transform="translate(0 0)" fill="#d7d1c4" />
				<path
					d="M297,57.89c.09,0-15.07,33.58-18.84,44a160,160,0,0,0-6.41,21.86c-1.36,6.46-1.59,13.12-3.09,19.53a1.18,1.18,0,0,1-1.14.89.88.88,0,0,1-.91-.85h0c-1.37-12.76,3.93-27.34,8.31-39.12,5.21-14,12.46-26.83,19.07-40.15h0s.06.09.08.09h0c2-4.35,2.86-6.17,2.89-6.17m0-1.39c-.9,0-1,.3-2,2.25-.41.87-1,2.13-1.79,3.86h-.11l-.4.78c-1.65,3.32-3.37,6.67-5,9.91-5,9.74-10.16,19.81-14.09,30.38-4.15,11.14-9.83,26.4-8.4,39.74a2.25,2.25,0,0,0,2.29,2.1,2.55,2.55,0,0,0,2.49-2,103.67,103.67,0,0,0,1.7-10.49c.37-3,.77-6.1,1.39-9.07a156.87,156.87,0,0,1,6.36-21.67c2.79-7.69,11.93-28.32,16.32-38.24.76-1.72,1.39-3.12,1.82-4.11.91-2.08,1-2.2.57-2.84l-.41-.65Z"
					transform="translate(0 0)" fill="#231f20" />
			</g>
			<g id="Whisker_Upper_L" data-name="Whisker Upper L">
				<path
					d="M231.44,140.71a2.1,2.1,0,0,1-1.89-1.12A111,111,0,0,1,225,128.94c-1.2-3.11-2.44-6.32-3.91-9.36A174.53,174.53,0,0,0,208.43,98c-5.08-7.53-20.51-27.32-27.92-36.83C176,55.42,176,55.42,176.26,55l.21-.43H177c.39,0,.4,0,5.05,5.78h.17l.25.29c2.68,3.14,5.44,6.29,8.1,9.34,8,9.16,16.29,18.62,23.33,28.88,7.41,10.8,17.55,25.59,19.41,39.9a1.78,1.78,0,0,1-.39,1.42A1.91,1.91,0,0,1,231.44,140.71Z"
					transform="translate(0 0)" fill="#d7d1c4" />
				<path
					d="M177,55.27s1.43,1.73,4.72,5.88h0s0-.11.08-.11h0c10.73,12.6,22,24.54,31.38,38.17,7.87,11.47,17.48,25.71,19.28,39.56a1,1,0,0,1-.82,1.15,1,1,0,0,1-.24,0,1.34,1.34,0,0,1-1.2-.71c-3.31-6.45-5.29-13.46-8.46-20A178.36,178.36,0,0,0,209,97.52c-6.86-10.14-32.25-42.27-32.12-42.27m0-1.53h-1l-.42.86c-.43.87-.27,1.08,1.29,3.09l3.05,3.93c7.41,9.5,22.82,29.27,27.88,36.78a174.07,174.07,0,0,1,12.61,21.51c1.46,3,2.69,6.21,3.89,9.3a109.08,109.08,0,0,0,4.58,10.73,2.86,2.86,0,0,0,2.57,1.54,2.66,2.66,0,0,0,2-.87,2.47,2.47,0,0,0,.58-2c-1.88-14.5-12.09-29.37-19.54-40.23C207.29,88.06,199,78.58,191,69.41c-2.66-3-5.42-6.2-8.09-9.34l-.46-.54h-.17l-3.1-3.84c-1.52-1.88-1.58-1.95-2.33-1.95Z"
					transform="translate(0 0)" fill="#231f20" />
			</g>
		</g>
		<g id="Main_Whiskers" data-name="Main Whiskers">
			<g id="Whisker_R" data-name="Whisker R">
				<path id="Whisker_R2" data-name="Whisker R2"
					d="M314.81,160.57c46.13,2.63,94.59,52.9,124,103.15,7.92,14.7,21.89,61.06,51.74,44.45-25.71,14.31-40.82-30.84-47.66-45.18-18.44-37.55-31-61.44-64.4-89.4-17.31-14.38-38.6-25.22-61.61-28.57C309,144.93,304.26,156.52,314.81,160.57Z"
					transform="translate(0 0)" fill="#d7d1c4" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="2" />
				<path id="Whisker_R1" data-name="Whisker R1"
					d="M314.23,160.36c64.26,5.1,104.36,63.81,135.16,113,8.34,14.42,28.57,51,43,20.78-15.78,28.33-31.93-8.58-39.19-22.67C433.67,234.59,411.77,198,377.75,171.2c-17.64-13.78-39.09-23.88-62-26.44C307.9,144.94,303.67,156.68,314.23,160.36Z"
					transform="translate(0 0)" fill="#d7d1c4" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="2" />
			</g>
			<g id="Whisker_L" data-name="Whisker L">
				<path id="Whisker_L2" data-name="Whisker L2"
					d="M173.79,164.55c-44.48,2.51-91.12,52.65-119.31,102.81-7.6,14.68-21,61-49.79,44.31C29.52,326,44,281,50.54,266.63c17.69-37.5,29.73-61.35,61.87-89.23,16.66-14.33,37.17-25.11,59.35-28.4C179.4,148.93,184,160.53,173.79,164.55Z"
					transform="translate(0 0)" fill="#d7d1c4" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="2" />
				<path id="Whisker_L1" data-name="Whisker L1"
					d="M174,164.36c-62.51,5-101.45,63.7-131.36,112.87C34.58,291.65,14.94,328.18.91,298,16.29,326.35,32,289.46,39,275.37c19-36.88,40.18-73.45,73.25-100.21,17.14-13.76,38-23.84,60.28-26.38C180.18,148.94,184.33,160.69,174,164.36Z"
					transform="translate(0 0)" fill="#d7d1c4" stroke="#231f20" stroke-miterlimit="10"
					stroke-width="2" />
			</g>
		</g>
		<g id="Hide_Whiskers" data-name="Hide Whiskers">
			<path id="WhiskerHide"
				d="M315,142.48c-21.62-5.95-47-11.29-70.26-12.35-22.91-1-49.3,5.71-70.71,13.61l-2,22.69v2c16.29-7.43,32.46-17.53,73.41-18.24,41.76-.73,56.7,6.67,71.89,12.29Z"
				transform="translate(0 0)" fill="#d7d1c4" />
			<path id="Upper_Lip" data-name="Upper Lip"
				d="M186,139.3c35.59-12.89,76.82-13,112.68-1C262,129.76,222.67,129.8,186,139.3Z"
				transform="translate(0 0)" fill="#231f20" />
		</g>
		<g id="Expressions">
			<path id="HappyF" d="M190,185s61,59,113-4Z" transform="translate(0 0)" />
			<path id="SadF" d="M303,201.08l-113-4s61-59,113,4" transform="translate(0 0)" />
			<path id="NormalF" d="M190,185s-11.67,8,4.92,15.38c16.3,7.29,78.87,7.88,101-4.08,8.47-4.57,14.5-7,7.09-15.3Z"
				transform="translate(0 0)" />
		</g>
	</g>
</svg>
              
            
!

CSS

              
                body {
 margin:0;
 background-color: blue;
}
svg {
  display: block;  
  width: 80%; 
}


#Whisker_L2, #Whisker_R2 {
  opacity: 0;
}

#HappyF, #SadF {
  opacity: 0;
}


              
            
!

JS

              
                const master = gsap.timeline()
const faces = ["#NormalF", "#HappyF", "#SadF"];


let bodyAni = gsap.timeline(

{ 
  // bodyAni:timeScale(10)
  // defaults: {
  //   timeScale: 10
  // }
  


} )

  
// whole fish

.to("#catfish", { rotate: "random(-5, 5)", yPercent: "random(-5, 5)", xPercent: "random(-5, 5)", repeatRefresh: true, yoyoEase:true, duration: 10, repeat:-1 }, 0)

  // tail
.to("#Tail", { rotate: "random(5, 20)", yPercent: "random(-5, -10)", skewY: "random(-5, -20)", repeatRefresh: true, yoyoEase:true, duration: 3, repeat:-1 }, 0)

// fin right
.to("#Fin_R", { rotate: "random(30, 40)", skewY: "-20deg", repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1 }, 0.25)

// fin left
.to("#Fin_L", { transformOrigin: 'top right', skewY: "20deg", rotate:  "random(-30, -40)", repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1 }, 0.25)

// fin top
.to("#Fin_Top", { skewY: "random(0, 20)", repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1}, 0)

// whisker morph

.to("#Whisker_L1", {repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1, morphSVG:"#Whisker_L2"})
.to("#Whisker_R1", {repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1,  morphSVG:"#Whisker_R2"}, 1)

// lower whiskers left
.to("#Whisker_Lower_LO", { transformOrigin: 'top right', skewY: "20deg", rotate:  "random(-5, 5)", repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1 }, 0.25)

.to("#Whisker_Lower_LI", { transformOrigin: 'top right', skewY: "20deg", rotate:  "random(5, -5)", repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1, delay: 0.25 }, 0.25)

// lower whiskers right
.to("#Whisker_Lower_RI", { rotate: "random(-5, 5)", skewY: "-20deg", repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1, delay: 0.25 }, 0.25)

.to("#Whisker_Lower_RO", { rotate: "random(-5, 5)", skewY: "-20deg", repeatRefresh: true, yoyoEase:true, duration: 2, repeat:-1 }, 0.25)

function faceAni(face){
let tl = gsap.timeline()

.to("#NormalF", {morphSVG: face}, 0)
return tl
}

master

.add(() => bodyAni.timeScale(1), 0)

.add(faceAni(faces[0]))

.add(() => bodyAni.timeScale(5), "+=3")

.add(faceAni(faces[1]))

.add(() => bodyAni.timeScale(1), "+=2")

.add(faceAni(faces[2]))

.add(() => bodyAni.timeScale(5), "+=3")

.add(faceAni(faces[1]))

.add(() => bodyAni.timeScale(1), "+=2")

.add(faceAni(faces[2]))

.add(() => bodyAni.timeScale(1), "+=2")

.add(faceAni(faces[0]))

.add(() => bodyAni.timeScale(1), "+=2")

//instantiate GSDevTools with default settings
GSDevTools.create();
              
            
!
999px

Console