How to make the type of Swipe without JS?

Good day to all)
Saw that you can implement the type of Swipe in pure html / css
Tell me how to do so if the blocks didn't get the size of the container, as it were, fell for it...
April 3rd 20 at 17:29
2 answers
April 3rd 20 at 17:31
April 3rd 20 at 17:33
something like this

Find more questions by tags CSSHTML