This shows the technique to incorporate a common slider within a svg component using the wonderful library Impetus to handle momentum and rubber-band.
This example use a piece of code to create runtime the neccessary element to clip a content properly. The same thing can be set (avoiding the code) within Illustrator but at the cost of some issues and manual edits and other quirks outlined below.
To animate the masked content properly we need to tweak a little bit the svg since Illustrator export the svg without a proper structure.