Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Suppose I have a slide defined as follows:

\begin{frame}[t,fragile]{Some Slide}
\begin{itemize}
\item An item
\item Another item
\end{itemize}

\pause

\begin{center}
\begin{tikzpicture}[overlay]

\transdissolve
\transduration{2}

\node[yshift=78] (img2)   {\includegraphics[scale=0.25]{someimage.png}};

\end{tikzpicture}
\end{center}    
\end{frame}

Now I want only the image to be show with a transition. In the above code, with the transition command added inside the tikzpicture environment, the complete slide as well as image are drawn with a transition. How do I restrict the transition to the image only?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Use it like this:

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

\begin{frame}[t,fragile]{Some Slide}
\begin{itemize}
\item An item
\item Another item
\end{itemize}

\transdissolve<2>
\transduration{2}
\only<2>{
    \begin{center}
        \begin{tikzpicture}[overlay]
            \node[yshift=78] (img2) {\includegraphics[scale=0.25]{dummy.png}};
        \end{tikzpicture}
    \end{center}
}

\end{frame}

\end{document}

For more information visit section 14.3 of the excellent beamer manual.

(Be aware of the fact that transitions are in most cases really distracting. Always keep this in mind and rethink before using them.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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