Looking for some help here - check out this StackBlitz.
I'm trying to create a simple highlight effect where an element's background quickly changes color and then fades back to white.
The sample includes two buttons to demonstrate different transitions, but I'd like to combine them into one method for flashing and fading.
I want to keep the animation separate from the component for reusability.
To change states, I attempted setting highlightState in form.component.ts to true, then immediately back to false. However, instead of seeing what I expected, nothing happens.
Even after using setTimeout() and maintaining the same transitions in highlight.ts, the highlight remains on indefinitely.
I know this concept is basic, and it's frustrating that I can't get it to function as intended. Any assistance would be greatly appreciated!