Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #31620

Re: Scrolling text with wrap inside a button

From Martin Honnen <martin.honnen@gmx.de>
Newsgroups comp.lang.javascript
Subject Re: Scrolling text with wrap inside a button
Date 2016-10-27 14:52 +0200
Organization Liberty Development
Message-ID <nustab$e9n$1@news.albasani.net> (permalink)
References <057b2eb8-5c20-4e37-ac3f-93c4b0561423@googlegroups.com>

Show all headers | View raw


On 27.10.2016 09:08, bit-naughty@hotmail.com wrote:
> If I have a button, and I want to scroll some text upwards within it, but with wrap, ie. whatever goes off the top has to reappear at the bottom, ie. loop, what do I do? It has to be a slow, pixel scroll.
>
> I'm kind of stuck on how to scroll it with wrap in the first place, never mind how to do it inside a *button*!!!

One way is

<button>
<marquee direction=up>This is some button text.</marquee>
</button>

although note that the marquee element 
https://www.w3.org/TR/html5/obsolete.html#the-marquee-element-0 is 
obsolete and CSS transitions/animations are preferred but on the other 
hand not finalized.


Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Scrolling text with wrap inside a button bit-naughty@hotmail.com - 2016-10-27 00:08 -0700
  Re: Scrolling text with wrap inside a button Martin Honnen <martin.honnen@gmx.de> - 2016-10-27 14:52 +0200

csiph-web