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

JavaScript

Simple fade in fade out text on loop

Hello any body know how to make a simple fadeIn fadeOut text, made up of four <h4> tags with in a <div> ?

This is a link to a site, with exactly the same effect I am trying to achieve (http://suj.co/).

Thanks

1 Answer

Use jQuery fades to bring the content in and out. The functions in jQuery allow you to trigger something on completion of the animation, so you can use one to trigger the next. Call the first function on document load, and the last line will recall the first function.