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! While you're at it, check out some resources Treehouse students have shared here.

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

CSS

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
MOD
Jonathan Grieve
Treehouse Moderator 91,253 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.

.top-text{  
    -webkit-animation: hideshow 10s 1.5s infinite;
    -webkit-animation-delay: 0.1s;
}
.top-text-1{  
    -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.