Thanks @Shaun Gorneau and @PointC, I
think this is jquery too:
$("#slider").slider({
range: false,
min: 0,
max: 100,
step:.1,
slide: function ( event, ui ) {
tl.pause();
//adjust the timeline's progress() based on slider value
tl.progress( ui.value/100 );
}
});
function updateSlider() {
$("#slider").slider("value", tl.progress() *100);
}
I guess I was having difficulty adjusting this to plain js.