Possible Duplicate:
How to make beamer overlays with Tikz node
I'd like to draw a figure in TikZ for a beamer
presentation, and color various nodes differently in different overlays of the same frame. I am able to use \only<>
to put nodes and paths only in some overlays, using \only<>
, but I can't seem to change styles using it.
Is it possible to change styles for different overlays? Can you think of a another way to color the nodes?
An example:
\documentclass{beamer}
\usepackage{pgf}
\usepackage{tikz}
\begin{document}
\begin{frame}{Frame}
\begin{tikzpicture}
\path (0,0) node[draw,rectangle] { 1 } --
(2,0) node[draw,rectangle] { 2 } --
(4,0) node[draw,rectangle] { 3 };
\end{tikzpicture}
\end{frame}
\end{document}
Suppose I want to make the first node fill color become gray from the second overlay on, and the second node to become gray on the next overlay, and so on. How would you recommend doing it?
Related
questions appear on the right side. The first one is How to make beamer overlays with Tikz node. Did you look at it?