Assuming you are referring to a UI Slider in a Unity scene, you can disable the animation of the slider by setting the "Whole Numbers" property of the slider component to true.
Here are the steps to do so:
- Select the Slider object in your scene.
- In the Inspector window, look for the "Slider (Script)" component.
- Find the "Whole Numbers" property and toggle it on.
- This should disable the animation when the slider value is changed, and snap the value to the nearest integer.