#!/usr/bin/env sh
echo "";
r() { echo -e "\r\033[1A\033[0K$@" ; sleep 0.3 }
a() { r "(>'-')>" ; r "^('-')^" ; r "<('-'<)" ; r "^('-')^" }
while : ; do a ; done

Or smaller.

#!/usr/bin/env sh
echo "";
r() { echo -e "\r\033[1A\033[0K$@" ; sleep 0.3 }
while : ; do r "(>'-')>" ; r "^('-')^" ; r "<('-'<)" ; r "^('-')^" ; done