Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
64
rated 0 times [  68] [ 4]  / answers: 1 / hits: 20990  / 14 Years ago, thu, may 6, 2010, 12:00:00

I am looking for a solution for a single line Marquee horizontal text scroll with a fading effect using javascript (jquery if possible). Like a carousel text scroll. All the google searches gave me scrolling effects but with no fading effect.



I know that this can be done in flash but im avoiding it if there are other solutions.



Any help would be greatly appreciated.


More From » scroll

 Answers
32

One way you can do this is by creating a marquee and floating a semi-transparent image at its edge:



Any of the ones you found are fine, or use this one built in jQuery: http://remysharp.com/demo/marquee.html



Here's a fading image: http://www.collylogic.com/scripts/fade.png



Here's the source where you can see actually SEE the fading effect on the above image



The advantages of doing it this way is that you're not doing any expensive processing in javascript. You also have a wider variety of scrolling to choose from without having to worry about when or where to fade.



The disadvantage is that semi-transparent pngs need a hack to work in IE6. But since it's just eye candy, I'd imagine those few IE6 users won't be impacted that much.


[#96860] Tuesday, May 4, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jocelynkarsynr

Total Points: 472
Total Questions: 98
Total Answers: 96

Location: Macau
Member since Mon, Nov 16, 2020
4 Years ago
jocelynkarsynr questions
Tue, Feb 8, 22, 00:00, 2 Years ago
Sat, Jul 11, 20, 00:00, 4 Years ago
Sun, May 10, 20, 00:00, 4 Years ago
Sat, Jan 18, 20, 00:00, 4 Years ago
;