You may have seen in many places "Loading..." where the 3 dots(or more), viz. "...", first appear one by one, then after displaying all the dots, they again disapperar and once again appear one by one (so, total 2 times).
To elaborate:-
Loading.
Loading..
Loading...
Then, it repeats second time!
So, for this I prepared a program and its source code is: