The following code uncovers a Forest tree level-by-level in a Beamer frame. However, the shadows appear all at once rather than with their nodes. How can I adjust the code so that the shadows stay with the nodes casting them?
\documentclass{beamer}
\usepackage{forest}
\tikzset{% set up for transitions using tikz with beamer overlays - developed by Daniel (http://tex.stackexchange.com/a/55849/) and, in earlier form, by Matthew Leingang (http://tex.stackexchange.com/a/6155/) and modified for this use, I think by Qrrbrbirlbel (http://tex.stackexchange.com/a/112471/)
invisible/.style={opacity=0,text opacity=0},
visible on/.style={alt=#1{}{invisible}},
alt/.code args={<#1>#2#3}{%
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path
},
}
\forestset{%
visible with edge from/.style={% based on visible on, developed by Qrrbrbirlbel (http://tex.stackexchange.com/a/112471/)
/tikz/visible on=<#1->,
/tikz/every label/.append style={visible on=<#1->},
edge={/tikz/visible on=<#1->},
},
}
\usetikzlibrary{shadows}
\begin{document}
\begin{frame}
\begin{forest}
for tree={
draw,
fill=white,
drop shadow,
},
before typesetting nodes={
for tree={
tempcounta/.option=level,
tempcounta'+=1,
visible with edge from/.register=tempcounta,
}
}
[first slide
[second slide[third slide][third slide]]
[second slide]
]
\end{forest}
\end{frame}
\end{document}
Here's the problem:
I thought I'd seen code for this, but I can't seem to find a duplicate. In particular, I hope that at least I've not asked this before!


invisible/.style={opacity=0,text opacity=0,drop shadow={opacity=0.8,fill=blue}},and comment thedrop shadowin the frame (https://www.dropbox.com/s/42p9e420ljd9svx/dsds.gif?dl=0). – Dr. Manuel Kuehner Mar 07 '17 at 20:31