My question is related to this one : Latex - Beamer: Applies the \cancel command only a specified slides. I tried to apply Loop Space's answer to this question, but I get a line jump when the xcancel appears. Can anyone help ? Here is a MWE :
\documentclass{beamer}
\usepackage[makeroom,thicklines]{cancel}
\renewcommand{\CancelColor}{\color{red}}
\newcommand<>{\xxcancel}[1]{\alt#2{\xcancel{#1}\vphantom{#1}}{#1}}%uncover the xcancel command
\begin{document}
\begin{frame}{Test Beamer xxcancel}
$\tilde{\chi}^{-1}\left(\mathbf{q},\omega\right)={\chi^{-1}\left(\mathbf{q},\omega\right)}
{- \xxcancel<2->{{} \dfrac{\lambda^{2}\cdot q^{2}}{C_{s,0}\cdot q^{2}+\omega^{2}}}}$
\end{frame}
\end{document}