如何移動兩個或多個平行影像以在投影機中的固定位置相遇

如何移動兩個或多個平行影像以在投影機中的固定位置相遇

假設我在水平線上有四個圖像。我想在第二行的固定位置上疊加一些映像(假設 Share0 和 Share2)。它應該看起來像移動風格。我可以用powerpoint中的動畫來做到這一點。我怎麼能在投影機中做到這一點?

在此輸入影像描述

我嘗試使用以下程式碼執行此操作但失敗了:

 \begin{frame}{series of images}
 \begin{center}
 \begin{overprint}

 \only<2>{\includegraphics[scale=0.40]{image1.pdf}}
 \hspace{-0.17em}\only<3>{\includegraphics[scale=0.40]{image2.pdf}}
  \hspace{-0.34em}\only<4>{\includegraphics[scale=0.40]{image3.pdf}}
   \hspace{-0.17em}\only<5>{\includegraphics[scale=0.40]{image4.pdf}}

   \only<2-5>{\mbox{\structure{Figure:} something}}

  \end{overprint}
   \end{center}
   \end{frame}

答案1

影像移動的手動動畫範例:

\documentclass{beamer}

\usepackage{tikz}

\begin{document}

\begin{frame}

\transduration<0-30>{0.1}
\begin{tikzpicture}[remember picture, overlay]
\foreach \x in{0,...,30}{    
  \node[] at (1.5+0.1333333*\x,2.-0.2*\x) {\includegraphics<+>[width=3cm]{example-image}};
  \node[] at (5.5,2.) {\includegraphics<.>[width=3cm]{example-image-b}};
  \node[] at (9.5-0.1333333*\x,2.-0.2*\x) {\includegraphics<.>[width=3cm]{example-image-a}};
}
\end{tikzpicture} 

\end{frame}
\end{document}

在此輸入影像描述

相關內容