<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>

Created at 11-Jun-2023 , By Vijay Official

// Select the element to animate const element = document.getElementById("myElement");

// Use GSAP to create the animation gsap.to(element, { duration: 2, // Animation duration in seconds scaleX: 2, // Scale the element horizontally by a factor of 2 scaleY: 2, // Scale the element vertically by a factor of 2 backgroundColor: "blue", // Change the background color to blue });

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.