Struggling to create seamless slider action (slider changes brightness of image)

I suspect you need to make a custom component to get the smooth behavior you desire. Streamlit reruns with every change in value of an input, so I think you will be stuck with at least some jitter no matter how much you optimize. If you create a component, you can have the action handled by javascript without reloading the page.