\only<1>{text1} \only<2>{text2} - text1 appears on the slide 1 only and is replaced by the text2 on the slide 2 Example: \only<1>{\hspace*{2.3mm}1 scalar} \only<2>{{\usebeamercolor{beamer color}\colorbox{yellow}{\color{blue}1 scalar}}}