SOLVED: How to make text disappear/appear after a period of time using Dev Tools

I am trying to achieve something like a slider, but instead of having different images as a background, I want my video to play in the background while the text changes by itself.

Something like this "www.youtube . com/watch?v=1CZhGDU5cWM"but instead of the slide left/right buttons I want it to slide by itself, and also so it doesnt change its background, so basically all the things that I want from the slider is just the text that changes, only I want it to change by itself, no buttons, and always the same background, which in my case will be a video.
Also I thought of just getting a slider and putting the video there, but I don’t know about the timing and I dont want it to play from the start everytime.

Sorry if I didn’t explain how I should’ve