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


Guillermo Sequeira
Guillermo Sequeira
9,297 Points

How is it possible to make 'words switch' effect?

I was looking at this website (http://actionsbeyondwords.org/) and was wondering how is it possible to make the effect of words switching. I'm not sure if this is possible with either CSS o JQuery. Thank you for any answer.

3 Answers

Based on the markup at the link you provided, I believe they are using this jQuery plugin to accomplish the text rotation/flip animations. Text Rotator Plugin

Sean T. Unwin
Sean T. Unwin
28,690 Points

They are using a jQuery plugin called Simple Text Rotator. If you look at the code in the main JavaScript file it creates an array from a comma-separated string (the text inside an element with the class, 'rotate'). As the text is looped the animation (transition) is done by the script adding custom CSS (there are seven animation setting options).

8,319 Points

Looks like a plugin.. also using CSS3 animations on the parent div. example link