This is a minimum use case example of the javascript library slid3r. It appends a slider into any SVG context you desire. See the library’s main repo for more information.
slid3r