Here is the MWE:
Code: Select all
\documentclass{beamer}
\usepackage{tikz}
\usepackage{animate}
\begin{document}
\begin{frame}
\begin{center}
\begin{animateinline}[
loop,
controls,
begin={\begin{tikzpicture}},
end={\end{tikzpicture}}
]{1}
\newframe
\draw[fill=red] (0,0) circle (3cm);
\newframe
\draw[fill=blue] (0,0) circle (6cm);
\end{animateinline}
\end{center}
\end{frame}
\end{document}
Code: Select all
! Package animate Error: Contents of first frame must not have zero width.
See the animate package documentation for explanation.
Type H <return> for immediate help.
...
l.19 \end{frame}
?
\draw (-4,-4) rectangle (4,4);
just before the first \newframe
command. It was successful. But, I was surprised to see both the circles being drawn with the same radius.Any pointers would be helpful.
Regards.