\documentclass{article}
\usepackage{animate}

\begin{document}

\begin{animateinline}[autoplay,loop,method=ocg]{1}
Hello
\newframe
World
\end{animateinline}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
