Demonstrating the Swipe Control.
The Swipe Control will reveal/hide a target layer right/left side of mouse mouse position on the map.
See the swipe.js source how the Swipe Control is used.