Javascript or any library

Hello FCC community:
I have a question whether there is an opportunity to build a video slider which is connected with some text in javascript, or any web technology. Everytime when another video appears, some certain text should be shown.

I am not clear how to implement it.

I hope you can help me out. Thank you very much.