Objective: First, I put a picture (named test.png
) in a circle (made by TikZ
). Then, I want to get an animated effect to enlarge the whole figure by controlling the value of the option scale
.
The final typeset does not show enlarging figures, however.
Code:
\documentclass{article}
\usepackage{animate,calc,tikz,graphicx}
\newcounter{animate}
\newcommand\test[1]{
\setcounter{animate}{10 * \real{#1}}
\begin{animateinline}[autoplay]{12}
\multiframe{\theanimate}{Rscale=0.1+0.1}{
\begin{tikzpicture}[transform shape]
\path
[path picture={\node at (0,0)
{\includegraphics[width=2.1cm]{test.png}};},
draw=orange,thick,scale=\Rscale,
]
(0,0) circle (1cm);
\end{tikzpicture}
}
\end{animateinline}
}
\begin{document}
\test{3.55}
\end{document}