I would like to turn this mindmap to an animation where e.g. the main items appear on the first click, and then each item has its children appearing on click. Thanks in advance.
```
\documentclass{beamer}
\mode<presentation>{\usetheme{Madrid}}
%%%<
\usepackage{verbatim}
%%%>
\usepackage[landscape]{geometry}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\usepackage{metalogo}
\usepackage{dtklogos}
\begin{document}
\begin{frame}{Mindmap}{}
\centering
\begin{tikzpicture} [scale=0.5, every node/.style={transform shape}]
\path [
mindmap,
text = white,
level 1 concept/.append style =
{font=\Large\bfseries, sibling angle=90},
level 2 concept/.append style =
{font=\normalsize\bfseries},
level 3 concept/.append style =
{font=\small\bfseries},
tex/.style = {concept, ball color=blue,
font=\Huge\bfseries},
engines/.style = {concept, ball color=green!50!black},
formats/.style = {concept, ball color=blue!50!black},
systems/.style = {concept, ball color=red!90!black},
editors/.style = {concept, ball color=orange!90!black}
]
node [tex] {\TeX} [clockwise from=0]
child[concept color=green!50!black, nodes={engines}] {
node {Engines} [clockwise from=90]
child { node {\TeX} }
child { node {pdf\TeX} }
child { node {\XeTeX} }
child { node {Lua\TeX} }}
child [concept color=blue, nodes={formats}] {
node {Formats} [clockwise from=300]
child { node {\LaTeX} }
child { node {Con\TeX t} }}
child [concept color=red, nodes={systems}] {
node {Systems} [clockwise from=210]
child { node {\TeX Live} [clockwise from=300]
child { node {Mac \TeX} }}
child { node {MiK\TeX} [clockwise from=60]
child { node {Pro \TeX t} }}}
child [concept color=orange, nodes={editors}] {
node {Editors} };
\end{tikzpicture}
\end{frame}
\end{document}
```
`dtklogos.sty` available at http://tug.ctan.org/obsolete/usergrps/dante/dtk-1.32/dtklogos.sty
Credits: Stefan Kottwitz
Top Answer
samcarter
This sounds like the perfect job for the `overlay-beamer-styles` library:
```
\documentclass{beamer}
\mode<presentation>{\usetheme{Madrid}}
%%%<
\usepackage{verbatim}
%%%>
%\usepackage[landscape]{geometry}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\usepackage{metalogo}
\usepackage{dtklogos}
\usetikzlibrary{overlay-beamer-styles}
\begin{document}
\begin{frame}{Mindmap}{}
\centering
\begin{tikzpicture} [scale=0.5, every node/.style={transform shape}]
\path [
mindmap,
text = white,
level 1 concept/.append style =
{font=\Large\bfseries, sibling angle=90},
level 2 concept/.append style =
{font=\normalsize\bfseries},
level 3 concept/.append style =
{font=\small\bfseries},
tex/.style = {concept, ball color=blue,
font=\Huge\bfseries},
engines/.style = {concept, ball color=green!50!black},
formats/.style = {concept, ball color=blue!50!black},
systems/.style = {concept, ball color=red!90!black},
editors/.style = {concept, ball color=orange!90!black}
] node [tex,visible on=<2->] {\TeX} [clockwise from=0]
child[concept color=green!50!black, nodes={engines},visible on=<3->] {
node {Engines} [clockwise from=90]
child { node {\TeX} }
child { node {pdf\TeX} }
child { node {\XeTeX} }
child { node {Lua\TeX} }}
child [concept color=blue, nodes={formats},visible on=<4->] {
node {Formats} [clockwise from=300]
child { node {\LaTeX} }
child { node {Con\TeX t} }}
child [concept color=red, nodes={systems},visible on=<5->] {
node {Systems} [clockwise from=210]
child { node {\TeX Live} [clockwise from=300]
child { node {Mac \TeX} }}
child { node {MiK\TeX} [clockwise from=60]
child { node {Pro \TeX t} }}}
child [concept color=orange, nodes={editors},visible on=<6->] {
node {Editors} };
\end{tikzpicture}
\end{frame}
\end{document}
```
![document.gif](/image?hash=920ab744e98e3ed114194b7534f5b1c57951be858532894acb7599a02897a470)
(please note that beamer automatically loads the geometry package, so you can't load it again with conflicting options. In theory you pass the option to geometry via `\documentclass[geometry={landscape}]{beamer}`, but as beamer slides are landscape by default...)