✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Change image opacity with a slider

I have an image displayed using html.Img(). I have put a slider below it to adjust the opacity of this image using dcc.Slider()

Can someone help in implementing adjustment of image opacity with slider values using callbacks?

Thanks in advance.
-Regards,
Rahul