treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Change line of text every few seconds?

  • Howdy,

    I am looking for a simple method to cycle a line of text every few seconds. I would prefer a css3 solution, but jQuery would be fine as well.

    Example:

    Hello World
    Today forecast calls for hot and sunny. <---- The line that cycles/changes

    If anyone could provide some assistance or point me in the right direction, I would be ever so appreciative .

    Thank You

  • I would suggest using the jQuery Cycle plugin found here: http://www.malsup.com/jquery/cycle/

    I am assuming you will be rotating text defined in HTML.

    Hope this helps!

  • You can also use animations and animate diffrent paragraphs opacity between 0 to 1.

  • Thanks for the suggestions, WIll have a look.