Play animation with slider

Hello,

I try to animate according to the position of a slider : https://playground.babylonjs.com/#Z919WV#7.

I was inspired by https://www.babylonjs-playground.com/#DTLQAK#0
But it doesn’t work.
Thanks for your help.

You should use the onValueChangedObservable instead of onPointerUpObservable:

https://playground.babylonjs.com/#Z919WV#8

thank you so much