How do I create this slider? [migrated]

I recently came up with the bing coronavirus website and for my mobile application, I’m planning to use the same concept (the slider from mid screen as shown on the gif below). This is what I would like to implement:

enter image description here

I looked into libraries in JavaScript but I couldn’t find any concepts like this. Could someone please assist me?

Thanks.