I am using the following code to create overlays with beamer
\tikzset{
invisible/.style={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
},
}
It works great except when one needs to use opacity in the path that is to be overlayed i.e.
\scoped[visible on=<2->]{\filldraw[shade, opacity=.5, color=red] (0,1) rectangle (0,0);}
does not work because of the opacity argument in the path itself. So this rectangle is always seen in all the overlays.
Anyway of a workaround?
Thanks
\onslide
with\transfade
transitions between overlays?