Speaking of sliders, I found this to be much easier to do with Observable notebooks, as you can see below (full view, or in Observable)

How to do this?

  • Click on share > Download Tarball. Extract it.
  • Go into the folder you extracted and start a webserver, e.g. python -m http.server.
  • Open the page at localhost