Present content from right to left in beamer

you can specify the the pause numbers manually:

\documentclass{beamer}
\begin{document}
\begin{frame}
 \begin{tabular}{ccccc}
  \includegraphics[width=.15\textwidth]{lion.jpg} & \pause 
  \includegraphics[width=.15\textwidth]{lion.jpg} & \pause 
  \includegraphics[width=.15\textwidth]{lion.jpg} & \pause 
  \includegraphics[width=.15\textwidth]{lion.jpg} & \pause 
  \includegraphics[width=.15\textwidth]{lion.jpg}           \\
 \end{tabular}

\pause[10]
 \begin{tabular}{ccccc}
  \includegraphics[width=.15\textwidth]{lion.jpg} &  \pause[9]  
  \includegraphics[width=.15\textwidth]{lion.jpg} &  \pause[8] 
  \includegraphics[width=.15\textwidth]{lion.jpg} &  \pause[7]  
  \includegraphics[width=.15\textwidth]{lion.jpg} &  \pause[6] 
  \includegraphics[width=.15\textwidth]{lion.jpg}    \pause[5]\\
 \end{tabular}

% \pause[11]   % If you need to add more overlays after the images sequence you need to
% text         % specify the number of the first pause and then move on with normal
%              % pauses again, as shown in the commented code
% \pause
% text

\end{frame}
\end{document}

enter image description here


The tabular environment is not really necessary for this. Also, you can use a \foreach loop to automate things a bit.

Code

\documentclass{beamer}
\usepackage{pgffor}
\usepackage{mwe} % provides images used in this example

\begin{document}
\begin{frame}
Left to right
\begin{center}
  \foreach \img[count=\i] in {a,b,c} {
    \visible<\i->{\includegraphics[width=.15\textwidth]{image-\img} \hskip15pt}
  }
\end{center}

\bigskip

Right to left
\begin{center}
  \foreach \img[count=\i] in {a,b,c} {
    \pgfmathtruncatemacro{\r}{7-\i} % Here, 7 = 6 + 1 = number of last slide + 1
    \visible<\r->{\includegraphics[width=.15\textwidth]{image-\img} \hskip15pt}
  }
\end{center}
\end{frame}

\end{document}

Output

enter image description here

Tags:

Beamer

Tables