\begin{tikzpicture}
\onslide<1->{
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (0,1){\tiny$s_1$};
      \node at (0.5,1.2) {\footnotesize $W$};
      \node at (0.2,1.8) {\footnotesize $V$};
      \node at (0.2,0.2) {\footnotesize $U$};
      \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (0,-0.5){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,-1){\tiny $x_1$};
      \draw[->](Aemb)--(A);

      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (0,2.8){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,3.3){\tiny $y_1$};
      
      \draw[->](A)--(C);
}


\onslide<3->{
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (1,1){\tiny $s_2$};
      \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (1,-0.5){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1,-1){\tiny $x_2$};
      \draw[->](Aemb)--(A);
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (1,2.8){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1,3.3){\tiny $y_2$};
      \node at (1.5,1.2) {\footnotesize $W$};
      \node at (1.2,1.8) {\footnotesize $V$};
      \node at (1.2,0.2) {\footnotesize $U$};
      \draw[->](A)--(C);
      \draw[->](0.2,1)--(0.8,1);
      
}                 
\onslide<4->{
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (2,1){\tiny $s_3$};
      \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (2,-0.5){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2,-1){\tiny $x_3$};
      \draw[->](Aemb)--(A);
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (2,2.8){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2,3.3){\tiny $y_3$};
      \node at (2.5,1.2) {\footnotesize $W$};
      \node at (2.2,1.8) {\footnotesize $V$};
      \node at (2.2,0.2) {\footnotesize $U$};
      \draw[->](A)--(C);

      \draw[->](1.2,1)--(1.8,1);
}                                                                                         
\onslide<5->{
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (3,1){\tiny $s_4$};
      \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (3,-0.5){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3,-1){\tiny $x_4$};
      \draw[->](Aemb)--(A);
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (3,2.8){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3,3.3){\tiny $y_4$};
      \node at (3.5,1.2) {\footnotesize $W$};
      \node at (3.2,1.8) {\footnotesize $V$};
      \node at (3.2,0.2) {\footnotesize $U$};
      \draw[->](A)--(C);

      \draw[->](2.2,1)--(2.8,1);
}                 
\onslide<6->{                 \node (A) at (4,1){\dots};
}     
\onslide<6->{
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (5,1){\tiny $s_t$};
      \node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (5,-0.5){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (5,-1){\tiny $x_t$};
      \draw[->](Aemb)--(A);
      \node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (5,2.8){};
      \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (5,3.3){\tiny $y_t$};
      
      \node at (4.5,1.2) {\footnotesize $W$};
      \node at (5.2,1.8) {\footnotesize $V$};
      \node at (5.2,0.2) {\footnotesize $U$};
      \draw[->](A)--(C);
      \draw[->](3.2,1)--(3.7,1);                    \draw[->](4.3,1)--(4.8,1);                                                                                      
}                                                                                               
\end{tikzpicture}
