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
5df0d55020a16767404797.png
Tell me how to do so if the blocks didn't get the size of the container, as it were, fell for it...
https://jsfiddle.net/hjyexdgb/
April 3rd 20 at 17:29
2 answers
April 3rd 20 at 17:31
April 3rd 20 at 17:33
something like this https://jsfiddle.net/8yajng4q/

Find more questions by tags CSSHTML