I am trying to change text colour in an animation in the section with the name:
”I bridge the gap between business goals and customers needs”.
When hovering on the columns, the background of the text turns purple and the text color should turn white, but every time I try to set it white in the interactions panel, it does not work.
To change text color in animations, follow these steps:
Select the text element you want to animate
Open the Interactions panel (keyboard shortcut: Shift + I)
Click the “+” icon to add a new animation
In the Style category, select “Text color”
Click the color swatch that appears
Choose your desired color from the color picker or input a specific hex code
You can adjust the timing and easing of the color transition in the animation settings panel. The color change can be triggered by various events like hover, click, or scroll depending on your interaction settings.
Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.
@acarinha for performance and reliability, it would be better to switch to CSS-based hover states. CSS runs natively in the browser and is much lighter, while JS interactions require more load and can feel slower on some devices. Switching to CSS will make the hover smoother, faster, and more stable.
You can edit the interaction as follows, since you have different classes enabled for the text the following approach works. If you can, you can introduce one common class for the text elements so that you can target one class and set it’s color to Cream. But for the current setup that you have, the following should work.
Card- hover animation:
Instead of changing the text color of the card element, target the relevant text elements like text-.75rem 2, font-meow 2, text-1rem 2and set it’s text color to Cream accordingly as highlighted below: