New answers tagged

3

All frames must share the same, manually inserted bounding box (in 2D screen coordinates) in order to override the automatic, TikZ-computed ones (which may differ from frame to frame). For parameterized pictures within the animateinline environment, the \multiframe command is to be preferred over \whiledo: \documentclass{article} \usepackage{tikz} \...


2

You need to set a common bounding box for all animation frames which encompasses all positions of the electron. Otherwise the animation's viewport moves with the electron. \documentclass{beamer} \usepackage{tikz} \usepackage{animate} \begin{document} \begin{frame} \begin{animateinline}[loop]{10} \multiframe{10}{rPos=0.1+0.5}{ \begin{tikzpicture} ...



Top 50 recent answers are included