0

How can I place a text on top of another text in beamer? I want something like this but over text while the original text becomes transparent.

3

Quick hack: use a negative space to move overlays in different states of uncovering on top of each other

\documentclass{beamer}

\setbeamercovered{%
    still covered={\opaqueness<1>{20}},
    again covered={\opaqueness<1->{20}}
}

\begin{document}

\begin{frame}
    \Huge

    \uncover<1>{old text}

    \visible<2>{\vspace*{-\baselineskip} new text}
\end{frame} 

\end{document}

enter image description here

  • Yes! But the new text is not placed on the first line if I have multiple lines. How to fix this? – Lod Oct 9 '18 at 19:25
  • @Lod If you have multiple lines, you could some use multiple of \vspace*{-\baselineskip} e.g. \vspace*{-3\baselineskip}. Or use tikz (in particular the tikzmarks library) if you need more flexibility. – user36296 Oct 9 '18 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.