[Tex/LaTex] Animation on beamer

animationsbeamer

How to set this kind of animation on beamer?

show_me_first show_me_second.

I'm trying to show this sentence as described. The show_me_first is showed first, and on click oon the Down button, it will shows the show_me_second. How to deal with this, please?

Thanks a lot!

Best Answer

Two possibilities, depending on the intended overlay format:

\documentclass{beamer}

\begin{document}

\begin{frame}
\only<1>{first}\only<2>{second}

\onslide<3>{third} \onslide<4>{fourth}
\end{frame}

\end{document}

enter image description here

You can also use \pause:

\begin{frame}
first\pause second
\end{frame}

You could also take a look at the beamer manual for \alt and \temporal.

Here's an example of several overaly specifications:

\documentclass{beamer}

\begin{document}

\begin{frame}
\begin{itemize}
\item<1-> \only<1>{first}\only<2->{second}
\item<3-4> \onslide<3->{third}\onslide<4>{ fourth}
\end{itemize}
\end{frame}

\end{document}

enter image description here

Related Question