Input signal goes through the ADG1211 switch control by PWM signal but output is not as expected.Here is the input signal,

Here is the output signal, Output signal is not smooth

And here is the PWM1 signal,

Part circuit diagram on the LT Spice,

Edit Notes
Added the part number ADG1211 to title.[edited by: EarlJohn at 6:39 PM (GMT -5) on 9 Feb 2024]