Mobile view swipe throught the website instead of scrolling

I’m looking for a way to make a website swipable, in a similar manner on how shorts, tiktok or reels work.
I was able to make a js work for the desktop, that slides to the next #id when you scroll down but i haven’t been able to figure it out for mobile

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer