I created a dark mode for my webpage by following the link https://dev.to/ananyaneogi/create-a-dark-light-mode-switch-with-css-variables-34l8 I want to add an animation effect so that when the dark mode is applied, the transition is smooth. How do I do it?
I know CSS keyframes are used to add animations or alternatively jQuery can be used, but I can't seem to get how to use them.