To add a visual label, e. g. in the lower right corner, use the animateinline environment:
\documentclass{article}
\usepackage{animate}
\usepackage{graphicx}
\begin{document}
\noindent%
\begin{animateinline}[controls=step]{1}
\multiframe{3}{i=0+1,ii=1+1}{ % zero-based and one-based counters
\includegraphics[width=\linewidth]{picture\i}%
\makebox[0pt][r]{\raisebox{-\totalheight}{\ii/3}}
}
\end{animateinline}
\end{document}
or in the top right corner. Just play with box commands:
\documentclass{article}
\usepackage{animate}
\usepackage{graphicx}
\begin{document}
\noindent%
\begin{animateinline}[controls=step]{1}
\multiframe{3}{i=0+1,ii=1+1}{ % zero-based and one-based counters
\raisebox{\depth}{%
\raisebox{-\height}{\includegraphics[width=\linewidth]{picture\i}}%
\makebox[0pt][r]{\raisebox{\depth}{\strut\ii/3}}%
}
}
\end{animateinline}
\end{document}
animatedocumentation,animatehas alabeloptions for\animategraphicsthat could possibly be used. – Apr 22 '22 at 18:38labelmake the object accesible as js property or method. I am talking about adding a visual label. – tush Apr 22 '22 at 19:11