I have the following code that TeXnicCenter has been complaining "Package animate error: contents of first frame must not have zero width." I have no idea what is wrong. Please help.
Code: Select all
\documentclass{beamer}
\usepackage{tikz}
\usepackage{animate}
\usetikzlibrary{mindmap,trees}
\begin{document}
\begin{frame}
\frametitle{test animation}
\begin{animateinline}[controls,
begin={\begin{tikzpicture}},
end={\end{tikzpicture}}]{10}
\path[remember picture,overlay,mindmap,concept color=red!50]
node[concept,shift={(2cm,1cm)}] at (current page.west) {My first line};
\newframe
\path[remember picture,overlay,mindmap,concept color=red!50]
node[concept,shift={(2cm,1cm)}] at (current page.west) {My second line};
\newframe
\path[remember picture,overlay,mindmap,concept color=red!50]
node[concept,shift={(2cm,1cm)}] at (current page.west) {My 3rd line};
\end{animateinline}
\end{frame}
\end{document}