created animateStringContainers function