Overlay specifications can be added to the TikZ commands.
\node<2> (a) {only visible on slide 2};
Is this also possible for the whole tikzpicture environment?
\begin{tikzpicture}[<2>]
\node (a) {only visible on slide 2};
\node (b) {also only visible on slide 2};
\end{tikzpicture}
This can be emulated by enclosing the environment in \only<2>{ ... }
but this is impossible when the tikzpicture
is used in a \newenvironment
.
Best Answer
As usual, these problems can be easily solved thanks to the style
visible on
defined by Daniel (see Mindmap tikzpicture in beamer (reveal step by step)).Moreover, it works without problems with custom environments. Demonstration:
The result: