.animated-text{display:inline-block;white-space:pre-wrap;overflow:hidden}.animated-text span{display:inline-block;opacity:0;transform:translateX(0);transition:all 1s ease}.animated-text.show.left span,.animated-text.show.right span{opacity:1;transform:translateX(0)}.animated-text.hide.left span{opacity:0;transform:translateX(-60px)}.animated-text.hide.right span{opacity:0;transform:translateX(60px)}