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.

Lod
  • 167

1 Answers1

4

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 09 '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. – samcarter_is_at_topanswers.xyz Oct 09 '18 at 19:28