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.
This is usually the relevant portion exported by Illustrator
<defs>
<rect id="SVGID_1_" width="400" height="132.782"/>
</defs>
<clipPath id="SVGID_2_">
<use xlink:href="#SVGID_1_" overflow="visible"/>
</clipPath>
<g clip-path="url(#SVGID_2_)">
...
</g>
The problem here is that the 'g' element with clip-path cannot be transformed because also the mask itself will be transformed. We need to add a further 'g' element with proper 'id' to achieve our purpose, like:
<g clip-path="url(#SVGID_2_)">
<g id="content">
...
</g>
</g>
At this time Illustrator do preserve the manual correction but pollute a little bit the svg with additional 'g' element everytime a save is performed.