I have stuck at this point to dynamically highlight some bunch of text in some duration. Like for example, I have this text :
Lorem Ipsum is simply a dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
I want the functionality to highlight this text background in a duration of 180sec.
What I did is this:
The logic I used is that I created two states s1, s2 with s1 as an empty string, and s2 with the whole content. Stating timer, I am removing n number of characters from s2 and adding the same n number of characters in s1, and showing s1 and s2 together inside <Text>
.
This feature is working but not correctly animating. I want some CSS transition-type smooth highlight animation for this feature to highlight this text completely in some duration.
Can anyone please help me to implement this feature using React Native Animations API?