Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


how to make text animate a bit more smoothly

l have created a pen where l am animating a piece of text here . is there anyway that l can improve this to help make the tex animate a bit more smoothly? at the minute one animates stays for longer before the other.

Any suggestions would be deeply appreciated guys thanks

1 Answer

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,250 Points

Hi Kelin,

Try making sure your animation duration and delay are the same. I matched them up to 1.5 seconds and the animation seems to flow a bit better.

    -webkit-animation: hideshow 10s 1.5s infinite;
    -webkit-animation-delay: 0.1s;
    -webkit-animation: op2 10s 1.5s infinite;
  -webkit-animation-delay: 0.2s;

thanks buddy. you got any idea how l change the point at which the animation of the zigzag line starts. l want it to do directly opposite to what its doing now.