\documentclass[margin=10mm]{standalone}
\usepackage{filecontents,graphicx}
\begin{filecontents*}{test.tex}
\documentclass[tikz,margin=10mm]{standalone}
\begin{document}
\foreach \r in {.1,.2,...,1.5}{%
\begin{tikzpicture}
\fill[black] (0,0) rectangle (6,6);
\fill[yellow] (3,3) circle (\r);
\end{tikzpicture}}
\end{document}
\end{filecontents*}
\immediate\write18{pdflatex test.tex}
\usepackage{animate}
\begin{document}
\animategraphics[autoplay,controls,loop,scale=1]{5}{test}{}{}
\end{document}