\begin{tikzpicture}[scale=0.8, transform shape]
	\node at (0,0){
		\begin{tikzpicture}[scale=1.0,transform shape]
			\pgfmathsetmacro{\seedx}{1.5}
			\pgfmathsetmacro{\seedy}{0}

		\visible<3->
		{
			\renewcommand{\forefillColor}{orange!40!white}
			\renewcommand{\borderColor}{white}
			\renewcommand{\toprsidefillcolor}{orange!50!white!50}
			\pgfmathsetmacro{\xcti}{\seedx+1.2}
			\pgfmathsetmacro{\ycti}{\seedy+0.0}
			\handmadecube{1.9}{2.7}{0.0}{\xcti}{\ycti+0.15}{dashed}
				
			%%% first
		}
		\visible<1->
		{
			\renewcommand{\forefillColor}{purple!50!white}
			\renewcommand{\borderColor}{white}
			\renewcommand{\toprsidefillcolor}{purple!50!white!50}
				\pgfmathsetmacro{\xcti}{\seedx}
				\pgfmathsetmacro{\ycti}{\seedy}
				\handmadecube{0.5}{2}{0.01}{\xcti}{\ycti}
					\node (w1) at (\seedx-0.25,\seedy-0.25){\tiny -1.4}; 
					\node (w1) at (\seedx-0.25,\seedy-0.55){\tiny -0.4};
					\node (w1) at (\seedx-0.25,\seedy-0.85){\tiny 1};
					\node (w1) at (\seedx-0.25,\seedy-1.25){$\vdots$};
					\node (w1) at (\seedx-0.25,\seedy-1.85){\tiny -2};

					\node (w1) at (\seedx-0.25,\seedy-2.35){\tiny $s_{t-1}$}; 
		}
		\visible<3->
		{			
			%%%%%%%%%%%%%%%%%%%%%%% 
			%%%%%%%%% odot

				\node [minimum width=1 cm](B) at (\seedx+0.25,\seedy-1){$\odot$}; 
				%%%%%%%%%%%%%%%%%%%
				%%%%%%%%%%%%%%%%%%%%second
				\pgfmathsetmacro{\xcti}{\seedx+1}
				\pgfmathsetmacro{\ycti}{\seedy}
				
				\renewcommand{\forefillColor}{red!50!white}
				\renewcommand{\borderColor}{white}
				\renewcommand{\toprsidefillcolor}{red!50!white!50}
				
				\handmadecube{0.5}{2}{0.01}{\xcti}{\ycti}
				
				\node (w1) at (\seedx+0.75,\seedy-0.25){\tiny 0.2}; 
				\node (w1) at (\seedx+0.75,\seedy-0.55){\tiny 0.34};
				\node (w1) at (\seedx+0.75,\seedy-0.85){\tiny 0.9};
				\node (w1) at (\seedx+0.75,\seedy-1.25){$\vdots$};
				\node (w1) at (\seedx+0.75,\seedy-1.85){\tiny 0.29};

				\node (w1) at (\seedx+0.75,\seedy-2.35){\tiny $o_{t}$}; 

				\draw[-, line width=1.2] (\seedx+2.35,\seedy-3) -- (\seedx+0.75,\seedy-3);
				\draw[->, line width=1.2] (\seedx+0.75,\seedy-3) -- (\seedx+0.75,\seedy-2.4);

				% %%%%%%%%%%%%%%%%%%%%%%%%%%%
				% %%%%%%%%%%% equal
				% \node (w1) at (\seedx+1.5,\seedy-1){$=$};
				% %%%%%%%%%%%%%%%%%%%%%%%%%% third
				% \pgfmathsetmacro{\xcti}{\seedx+2.5}
				% \pgfmathsetmacro{\ycti}{\seedy}
				
				% \renewcommand{\forefillColor}{blue!50!white}
				% \renewcommand{\borderColor}{white}
				% \renewcommand{\toprsidefillcolor}{blue!50!white!50}
				
				% \handmadecube{0.5}{2}{0.0}{\xcti}{\ycti}
				% \node (w1) at (\seedx+2.25,\seedy-0.25){\tiny 0.2}; 
				% \node (w1) at (\seedx+2.25,\seedy-0.55){\tiny 0.34};
				% \node (w1) at (\seedx+2.25,\seedy-0.85){\tiny 0.9};
				% \node (w1) at (\seedx+2.25,\seedy-1.25){$\vdots$};
				% \node (w1) at (\seedx+2.25,\seedy-1.85){\tiny 0.29};

				% \node (w1) at (\seedx+2.25,\seedy-2.35){\tiny $h_{t-1}$}; 
				%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
			}
			\pgfmathsetmacro{\seedx}{0}
			\visible<4->
			{
				\draw[->, line width=1] (\seedx+2.55,\seedy-0.75) -- (\seedx+3.7,\seedy-0.75);
				\draw[->, line width=1] (\seedx+4.4,\seedy-0.75) -- (\seedx+5.3,\seedy-0.75);
				\node (W) at (\seedx+3.15,\seedy-0.55){\small $W$};
				\node[circle,draw=black,fill=yellow] (sigma) at (\seedx+4.05,\seedy-0.8){$\sigma$};

				%%%%% input
				\renewcommand{\forefillColor}{cyan!50!white}
				\renewcommand{\borderColor}{white}
				\renewcommand{\toprsidefillcolor}{cyan!50!white!50}
					\pgfmathsetmacro{\xcti}{\seedx+4.3}
					\pgfmathsetmacro{\ycti}{\seedy-1.7}
					\handmadecube{0.5}{2}{0.01}{\xcti}{\ycti}
						\node (w1) at (\seedx+4.05,\seedy-1.7-0.25){\tiny 0.7}; 
						\node (w1) at (\seedx+4.05,\seedy-1.7-0.55){\tiny -0.2};
						\node (w1) at (\seedx+4.05,\seedy-1.7-0.85){\tiny 1.1};
						\node (w1) at (\seedx+4.05,\seedy-1.7-1.25){$\vdots$};
						\node (w1) at (\seedx+4.05,\seedy-1.7-1.85){\tiny -0.3};
						\node (w1) at (\seedx+4.05,\seedy-1.7-2.35){\tiny $x_{t}$}; 

				\draw[->, line width=1.2] (\seedx+4.05,\seedy-1.7) -- (\seedx+4.05,\seedy-1.15);
				\node (U) at (\seedx+4.25,\seedy-1.4){\small $U$};


				%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4th

			
			% Current state timestep t

			\pgfmathsetmacro{\seedx}{6}
			\pgfmathsetmacro{\seedy}{0}

			\renewcommand{\forefillColor}{green!40!white}
			\renewcommand{\borderColor}{white}
			\renewcommand{\toprsidefillcolor}{green!50!white!50}
			\pgfmathsetmacro{\xcti}{\seedx+3.7}
			\pgfmathsetmacro{\ycti}{\seedy+0.0}
			\handmadecube{4.4}{2.7}{0.0}{\xcti}	{\ycti+0.15}{dashed}
				
			%%% first

			\renewcommand{\forefillColor}{pink!50!white}
			\renewcommand{\borderColor}{white}
			\renewcommand{\toprsidefillcolor}{pink!50!white!50}
				\pgfmathsetmacro{\xcti}{\seedx}
				\pgfmathsetmacro{\ycti}{\seedy}
				\handmadecube{0.5}{2}{0.01}{\xcti}{\ycti}
					\node (w1) at (\seedx-0.25,\seedy-0.25){\tiny 0.4}; 
					\node (w1) at (\seedx-0.25,\seedy-0.55){\tiny 0.6};
					\node (w1) at (\seedx-0.25,\seedy-0.85){\tiny 0.1};
					\node (w1) at (\seedx-0.25,\seedy-1.25){$\vdots$};
					\node (w1) at (\seedx-0.25,\seedy-1.85){\tiny 0.2};

					\node (w1) at (\seedx-0.25,\seedy-2.35){\tiny $\tilde{s}_{t}$}; 
		}
			%%%%%%%%%%%%%%%%%%%%%%% 
			%%%%%%%%% odot
			\visible<5->
			{
				\node [minimum width=1 cm](B) at (\seedx+0.25,\seedy-1){$\odot$}; 
				%%%%%%%%%%%%%%%%%%%
				%%%%%%%%%%%%%%%%%%%%second
				\pgfmathsetmacro{\xcti}{\seedx+1}
				\pgfmathsetmacro{\ycti}{\seedy}
				
				\renewcommand{\forefillColor}{brown!50!white}
				\renewcommand{\borderColor}{white}
				\renewcommand{\toprsidefillcolor}{brown!50!white!50}
				
				\only<7>
				{
					\renewcommand{\forefillColor}{red!70!white}
					\renewcommand{\borderColor}{white}
					\renewcommand{\toprsidefillcolor}{red!70!white!30}				
				}

				\handmadecube{0.5}{2}{0.01}{\xcti}{\ycti}
				
				\node (w1) at (\seedx+0.75,\seedy-0.25){\tiny 0.8}; 
				\node (w1) at (\seedx+0.75,\seedy-0.55){\tiny 0.66};
				\node (w1) at (\seedx+0.75,\seedy-0.85){\tiny 0.1};
				\node (w1) at (\seedx+0.75,\seedy-1.25){$\vdots$};
				\node (w1) at (\seedx+0.75,\seedy-1.85){\tiny 0.71	};

				\node (w1) at (\seedx+0.75,\seedy-2.35){\tiny $i_t$}; 
			}
			\visible<6->
			{
				%%%%%%%%%%%%%%%%%%%%%%%%%%%
				%%%%%%%%%%% plus
				\node (w1) at (\seedx+1.5,\seedy-1){$+$};
				
				%%%%%%%%%%%%%%%%%%%%%%%%%% third
				\pgfmathsetmacro{\xcti}{\seedx+2.5}
				\pgfmathsetmacro{\ycti}{\seedy}
				
				\renewcommand{\forefillColor}{purple!50!white}
				\renewcommand{\borderColor}{white}
				\renewcommand{\toprsidefillcolor}{purple!50!white!50}
				
				\handmadecube{0.5}{2}{0.0}{\xcti}{\ycti}
				\node (w1) at (\seedx+2.25,\seedy-0.25){\tiny -1.4}; 
				\node (w1) at (\seedx+2.25,\seedy-0.55){\tiny -0.4};
				\node (w1) at (\seedx+2.25,\seedy-0.85){\tiny 1};
				\node (w1) at (\seedx+2.25,\seedy-1.25){$\vdots$};
				\node (w1) at (\seedx+2.25,\seedy-1.85){\tiny -2};

				\node (w1) at (\seedx+2.25,\seedy-2.35){\tiny $s_{t-1}$}; 

				\node [minimum width=1 cm](B) at (\seedx+2.75,\seedy-1){$\odot$}; 
	

				\pgfmathsetmacro{\xcti}{\seedx+3.5}
				\pgfmathsetmacro{\ycti}{\seedy}
				
				\renewcommand{\forefillColor}{brown!50!white}
				\renewcommand{\borderColor}{white}
				\renewcommand{\toprsidefillcolor}{brown!50!white!50}
				
				\only<7>
				{
					\renewcommand{\forefillColor}{red!70!white}
					\renewcommand{\borderColor}{white}
					\renewcommand{\toprsidefillcolor}{red!70!white!30}				
				}

				\handmadecube{0.5}{2}{0.0}{\xcti}{\ycti}
				\node (w1) at (\seedx+3.25,\seedy-0.25){\tiny 0.2}; 
				\node (w1) at (\seedx+3.25,\seedy-0.55){\tiny 0.34};
				\node (w1) at (\seedx+3.25,\seedy-0.85){\tiny 0.9};
				\node (w1) at (\seedx+3.25,\seedy-1.25){$\vdots$};
				\node (w1) at (\seedx+3.25,\seedy-1.85){\tiny 0.29};
				\node (w1) at (\seedx+3.25,\seedy-2.35){\tiny $1-i_t$}; 


				%%%%%%%%%%% equal
				\node (w1) at (\seedx+4,\seedy-1){$=$};


				\pgfmathsetmacro{\seedx}{11}
				\pgfmathsetmacro{\seedy}{0}

				\renewcommand{\forefillColor}{magenta!40!white}
				\renewcommand{\borderColor}{white}
				\renewcommand{\toprsidefillcolor}{magenta!50!white!50}
				\pgfmathsetmacro{\xcti}{\seedx+0.2}
				\pgfmathsetmacro{\ycti}{\seedy+0.0}
				\handmadecube{0.9}{2.7}{0.0}{\xcti}	{\ycti+0.15}{dashed}
					
				%%% first

				\renewcommand{\forefillColor}{yellow!50!white}
				\renewcommand{\borderColor}{white}
				\renewcommand{\toprsidefillcolor}{yellow!50!white!50}
					\pgfmathsetmacro{\xcti}{\seedx}
					\pgfmathsetmacro{\ycti}{\seedy}
					\handmadecube{0.5}{2}{0.01}{\xcti}{\ycti}
						\node (w1) at (\seedx-0.25,\seedy-0.25){\tiny -1.5}; 
						\node (w1) at (\seedx-0.25,\seedy-0.55){\tiny 0.2};
						\node (w1) at (\seedx-0.25,\seedy-0.85){\tiny 1};
						\node (w1) at (\seedx-0.25,\seedy-1.25){$\vdots$};
						\node (w1) at (\seedx-0.25,\seedy-1.85){\tiny -1.9};

						\node (w1) at (\seedx-0.25,\seedy-2.35){\tiny ${s}_{t}$}; 
			}
			\end{tikzpicture}
};
\end{tikzpicture}