Looking for the slider Plugin

Looking for the slider Plugin

Hi everyone:
I am looking for a slider plugin which can detect the proportion of the container's width to the inside object's width, and dynamic change the handle area's proportion.

such as demo

but jQuery's demo is really hard to use, and if the object's total width less than container's width, then it's not work, so I need to find another solution.