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.

General Discussion

Anthony Hind
Anthony Hind
5,715 Points

Scrolling Text YES or NO!

Hi all,

I have been asked to put some scrolling text onto a site using the simple marquee HTML method.

I am just curious to know what peoples thoughts are on using the marquee attribute is it old fashioned/ bad design is it best to use JQuery of some sort ???

5 Answers

Tom Bedford
Tom Bedford
15,645 Points

No as it's hard to read & distracts from other (perhaps more important) content. If the content that is wanted in the marquee is meant to be important then having it scroll means users cannot see all of it at once.

Best to not use it.

Anthony Hind
Anthony Hind
5,715 Points

Cheers Tom,

The area it has been requested is to highlight an up coming event basically they want the event information to scroll above a registration button!

Thanks for you input

James Barnett
James Barnett
39,199 Points

I believe this follows into the category of just because we can doesn't mean we should.

But it can be easily done in CSS3 using keyframe animation, with support for IE10+, Firefox 5+, Chrome, Safari 4+.

Here's a proof of concept: http://codepen.io/jamesbarnett/pen/kfmKa

Demo of code from: http://visualidiot.com/articles/css3

Anthony Hind
Anthony Hind
5,715 Points

Thanks James Barnett I appreciate your links!

Looks like a lot more work doing it the CSS way :)

James Barnett
James Barnett
39,199 Points

It's probably simpler than any JQuery you'd find to do it. But using a marquee interaction will almost certainly lead to a very poor user experience.

Anthony Hind
Anthony Hind
5,715 Points

Yeah I appreciate that James the JQuery method would be very difficult compared to CSS to be honest I think i may leave the scrolling effect as you say just adds to a poor user experience!