How to create a slider that a user can adjust to change the color of a 3D plot?

Typically, the color of a 3D map (contour or surface) is assigned by the value of one of the 3 parameters. But can I add a fourth parameter that can be adjusted in real-time using a ‘slider’ and that will change the color (or say heat map) of the entire surface plot? P.S. I need to use Plotly in Python