0

How can I autoplay the animated graphic when the item is visible? This my code (the animated graphic is into the second item. Now the graphics start when I click on it

\begin{frame}
\frametitle{Title}
    \begin{enumerate}
        \item<1-> item1
        \item<2-> item with the animated graphic
        \begin{tikzpicture}
        \node<2>[inner sep=0pt] (video1) at (-1.5,.1) {\animategraphics[loop,width=.4\textwidth,autoplay]{8}{graphics/frames/breaststroke/breaststroke-}{0}{29}}; 
        \end{tikzpicture}
        \item<3-> item3 
    \end{enumerate}
\end{frame}
1

Well, this works for me, no additional click needed:

\documentclass{beamer}
\usepackage{animate}
\usepackage{tikz}
\usepackage{graphics}

\begin{document}
\begin{frame}
\frametitle{Title}
    \begin{enumerate}
        \item<1-> item1
        \item<2-> item with the animated graphic
        \begin{tikzpicture}
        \node<2>[inner sep=0pt] (video1) at (-1.5,.1) {\animategraphics[loop,width=.4\textwidth,autoplay]{8}{example-image-a4-numbered}{}{}};
        \end{tikzpicture}
        \item<3-> item3 
    \end{enumerate}
\end{frame}
\end{document}

(Always provide a compilable example, as indicated in the comment to your question.)

  • Thank you. What was the pdf viewer that you used? – jperezmartin Mar 18 at 17:24
  • Acrobat Reader. – AlexG Mar 18 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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