Vinayak
Vinayak

Reputation: 41

Is it possible to apply animation to a text which is dynamically getting appended using pure css?

I am trying to add animation to a text content which appends dynamically. I need to apply animation to each incoming text, keeping the already added text stable

Upvotes: 0

Views: 52

Answers (1)

Vinayak
Vinayak

Reputation: 41

Push the text content to an array. You can try ngClass and match the index with the last element using ternary operator, apply the animation to the matching span.

Upvotes: 1

Related Questions