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.

JavaScript

Mary O'Gorman
Mary O'Gorman
1,482 Points

Scrolling tweets

Hi,

I am using Github: https://github.com/jasonmayes/Twitter-Post-Fetcher and jquery.flexslider.js. At the moment the tweets are fading in one by one, what I would like to do is have them scroll in. Does anyone know how I would go about this? Or would anyone have any other plugins they would recommend?

Hi Mary,

Is this what you're using for the slider? http://www.woothemes.com/flexslider/

Are you putting each tweet in a slide and you want them to slide in instead of fade in?

Jason Desiderio
Jason Desiderio
21,811 Points

Hey Mary,

If you are using the http://www.woothemes.com/flexslider/ then you have to specify the animation properties in the load function. Seems the two available animation types are fade or slide. The follow code below would change it to slide:

$(window).load(function() {
  $('.flexslider').flexslider({
    animation: "slide"
  });
});

1 Answer

Mary O'Gorman
Mary O'Gorman
1,482 Points

Hi Jason,

I was using that, however I couldn't get it to scroll so I found this instead. http://logicbox.net/jquery/simplyscroll/horizontal.html#js

Images and text scroll across but I can't gt the tweets to scroll, at the moment the five tweets I have called and showing underneath each other instead of scrolling.

If you're looking for that type of scrolling effect then flexslider probably won't work for you. As Jason Desiderio already noted, your only options are fade or slide.

Can you show us the output html of what you have so far for this scrolling part? Maybe also post your javascript code.