0

I am creating a tikz picture that I want a certain component to be visible in a certain number of slides, say slides 1 and 3 only. I want the node to be invisible on page 2.

Is it possible?

I tried something like

\begin{tikzpicture}
\node (abc) [decision, align=left, visible on=<1,3>] {abc};
\node (def) [decision, right of=abc, align=left, invisible on=<2>] {def};
\end{tikzpicture}

but this does not work.

Thanks!

rick
  • 3

1 Answers1

1

You can prevent the , from confusing the handler for the optional arguments by wrapping your overlay specification in {...}:

\documentclass{beamer}

\usepackage{tikz} \usetikzlibrary{overlay-beamer-styles}

\begin{document}

\begin{frame}[fragile] \begin{tikzpicture} \node[align=left, visible on=<{1,3}>] (abc) at (0,0) {abc}; \end{tikzpicture} \end{frame}

\end{document}

enter image description here