Forum Discussion
JohnCooper-be3c
5 months agoCommunity Member
Hi Marcel
You should be able use the GSAP Animation JavaScript code library which is integrated into Storyline. You will need to find the ID of the rectangle you want to change but then it will be something like:
gsap.to('#shapeID', {
duration: 1, // Duration in seconds
backgroundColor: "#00ff00", // Target color in hex format
ease: "none" // Type of easing
});
There are way better experts here that use GSAP regularly that will be able to correct my code if it's wrong - but definitely GSAP will do it.