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 trialGuillermo Sequeira
9,297 PointsHow 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
Ed Mendoza
9,652 PointsBased 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
28,690 PointsThey 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).
nicholastillman
8,319 PointsLooks like a plugin.. also using CSS3 animations on the parent div. example link
Guillermo Sequeira
9,297 PointsGuillermo Sequeira
9,297 PointsThank you.