Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 90,705 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.