开发者

jQuery inline text scrolling/rotating/carousel effect

开发者 https://www.devze.com 2022-12-27 06:47 出处:网络
I trying to create an animation with JQuery that scrolls 1 word in a sentence.For example, I am a nice sente开发者_高级运维ntce of text with a MAGIC word in it

I trying to create an animation with JQuery that scrolls 1 word in a sentence. For example,

I am a nice sente开发者_高级运维ntce of text with a MAGIC word in it
                                     OTHER
                                     HIDDEN
                                     WORDS

After a second or so, MAGIC would move upwards and OTHER would scroll into view. I've tried playing with a few carousel plugins but I can't seem to get the effect working.

Some seem to have so many nested divs that they refuse to display inline, others have issues when one word is longer than another.

Does anybody know of a plugin that could make this possible? Is this even possible?


After a little more experimentation it seems that jCarousel Lite is the answer.

http://www.gmarwaha.com/jquery/jcarousellite/#what

However, it does mean that the 3 elements: text before, scroll and text after have to be floated. Not ideal, but it works!

0

精彩评论

暂无评论...
验证码 换一张
取 消