public static void setNodesToVisible(ObservableList<Animation> animations) {
        for (Animation a : animations) {

            if (a instanceof ScaleTransition) {
                ScaleTransition st = (ScaleTransition) a;
                st.getNode().setScaleX(0);
                st.getNode().setScaleY(0);
                st.getNode().setVisible(true);
            }
            if (a instanceof TranslateTransition) {
                TranslateTransition tt = (TranslateTransition) a;

                tt.getNode().setVisible(true);
            }
            if (a instanceof StrokeTransition) {
                StrokeTransition st = (StrokeTransition) a;
                st.getShape().setVisible(true);
            }
            if (a instanceof FadeTransition) {
                FadeTransition ft = (FadeTransition) a;
                ft.getNode().setVisible(true);
            }
            if (a instanceof ParallelTransition) {
                ParallelTransition p = (ParallelTransition) a;
                setNodesToVisible(p.getChildren());
            }
            if (a instanceof SequentialTransition) {
                SequentialTransition s = (SequentialTransition) a;
                setNodesToVisible(s.getChildren());
            }
        }
    }