# Animating equations over the slide

The following code highlight an equation from the frame to be manipulated in next slides.

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{calc,tikzmark}
\usepackage{animate}
\begin{document}
\begin{frame}
This is an example

\begin{minipage}{.48\textwidth}
\begin{equation*}
\tikzmarknode{B}{f(x)=\int_0^x g'(t) d t}
\end{equation*}
\end{minipage}
\begin{minipage}{.48\textwidth}
\begin{equation*}
f(x)=g(x)-g(0)
\end{equation*}
\end{minipage}
\begin{tikzpicture}[overlay,remember picture]
\fill<2->[opacity=.9,black] (current page.north east) rectangle (current page.south west);
\fill<2->[rounded corners,fill=normal text.bg] ($(B.north west)+(-1cm,1cm)$)rectangle($(B.south east)+(1cm,-1cm)$) ;
\node<2-> at (B){$\displaystyle f(x)=\int_0^x g'(t) d t$};
\end{tikzpicture}
\end{frame}
\end{document}


From slide 2, I have a black-transparent screen on the slide and a white portion of it containing my equation. In slide 3, I would like to move my highlighted equation around the page using animate package. I have recently asked a similar question, but that solution is only for the first slide. Moreover, it does not take into account the tikzmarknode.