Play Timeline If ClassList Contains


I am using the MutationObserver event to check if a dom element has a class attribute added.
How do I play a timeline if this is true?

Is this the correct approach?

Secondly, how do I setup the Timeline?

  • What Trigger do I use in this scenario?
  • Is the timeline set to pause?

Thanks for any advice/tips