# Overlay image over animation

Is there any way to overlay an image over an animation (like in webpages) in beamer using either

ainmategraphics,\begin{animateinline},\movie or \includegraphics


together with

tikzpicture


Any plugin-based animation (multimedia, media9, movie15) plays in a separate layer on top of the page content and cannot be overlaid by typeset material or embedded graphics or images, irrespective of the order of occurrence in the document source file. It always bubbles up to the top layer (foreground) when activated.

animate-generated animations can play in the background of other material if the OCG method is used (package or command/environment option method=ocg). However, achievable frame rates may become lower as compared to the standard icon animation method, in particular when combining complex animations and rich page content, because the complete page has to be re-rendered with every animation frame refresh.

Example (↗ShareLaTeX):

\documentclass{article}
\usepackage{animate}
\usepackage{graphicx,color}

\begin{document}
\makebox[0pt][l]{\begin{animateinline}[autoplay,width=3cm,loop,method=ocg]{2}\multiframe{10}{i=0+1}{\strut\i}\end{animateinline}}
\rotatebox{60}{\makebox[0pt][l]{\Huge\color{red}Hello World}}
\end{document}

• This is what i got by compiling using Lualatex – Vishnu Prasad May 31 '17 at 5:38
• Fine! I get the same. – AlexG May 31 '17 at 7:00
• :( So its impossible :( – Vishnu Prasad May 31 '17 at 11:50
• What is impossible? The example overlays "Hello World" on top of an animation. This is what you requested. – AlexG May 31 '17 at 12:08
• @Vishnu You are using an old, possibly bugged version of animate. I inserted a link to ShareLaTeX in my answer. – AlexG Jun 1 '17 at 7:10