I have created a nice animation using tikz and the animate package, which I am playing in palindrome form. It's something like the following example, although of course this is simpler than my real document. The problem is that I need it to *pause briefly* at the beginning and end of the animation, as if the first and last frames had a longer duration than the others. Is there a way to do this?

One idea I had was that rather than there being 11 frames with \rTheta going from 0 to 10, instead there could be 31 with \rTheta going from -10 to 20. Then there could be a conditional which sets a negative value of \rTheta to 0, and a value greater than 10 would be set to 10. This would give exactly the effect I want. Not sure if this is possible, or if there is a better way.

```
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{animate}
\begin{document}
\begin{frame}
$
\begin{animateinline}[autoplay,palindrome]{10}
\multiframe{11}{rTheta=0+.1}{
\begin{tikzpicture}
\node (a) at (0,0) {a};
\node (b) at (10,0) {b};
\node (c) at ($(0,0)!\rTheta!(10,0)$) {$X$};
\end{tikzpicture}
}
\end{animateinline}
$
\end{frame}
\end{document}

```