# [Tex/LaTex] How to overlap images in a beamer slide

beamergraphics

I'm creating a beamer presentation. I want to make one frame that has a couple of images overlapped, like a stack of photos. Actually, I want something like this:

.-----.
| AAA |
| AAA |
'-----'


Then, the next slide shows:

.-----.
| AAA |
| AA.-----.
'---| BBB |
| BBB |
'-----'


And then, the next one shows:

.-----.
| AAA |
| AA.-----.
'.-----.B |
| CCC |B |
| CCC |--'
'-----'


The idea is to control the position of each image and allow them to overlap. I have no idea about how to do this in beamer.

I think the best solution is to have all images inside the same frame, but put a \pause command between them.

A TikZ example:

\documentclass{beamer}
\usepackage{tikz}
\begin{document}

\begin{frame}
\begin{center}
\begin{tikzpicture}
\node (img1) {\includegraphics[height=3cm]{img1}};
\pause
\node (img2) at (img1.south east) {\includegraphics[height=3cm]{img2}};
\pause
\node (img3) at (img2.south west) [yshift=1cm] {\includegraphics[height=3cm]{img3}};
\end{tikzpicture}
\end{center}
\end{frame}

\end{document}


The second and third images are placed on a corner of the previous image, the third also shifted a little upward, the reason being that with the images I used there was some whitespace between them. You could of course place the images at specific coordinates, and not relative to each other like here.