Closed Thread Icon

Topic awaiting preservation: Smooth auto image/text scroller? (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=8254" title="Pages that link to Topic awaiting preservation: Smooth auto image/text scroller? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Smooth auto image/text scroller? <span class="small">(Page 1 of 1)</span>\

 
Thumper
Paranoid (IV) Inmate

From: Deeetroit, MI. USA
Insane since: Mar 2002

posted posted 08-06-2002 23:55

I am trying to find something that is very smooth! I have this idea for an image effect and I'd like to try it out with it Anybody know of a super smooth one? Thanks in advance...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-07-2002 02:50

smooth... movement?

I usually resort to the function d = (1-cos(t*pi))/2 for smooth movement.

Thumper
Paranoid (IV) Inmate

From: Deeetroit, MI. USA
Insane since: Mar 2002

posted posted 08-07-2002 04:40

Yeah movement Slime...I'd like something that can move smoothly so that an overlapping image with transparency can hover over and scroll upward. I do not want to make it an animated .gif because it would be too large. As far as the code down there...NOT A CLUE!! I'm a graphics guy and I thought this would be the right place to ask this question.

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 08-12-2002 18:28

Slime's snippet there is d = (1-Math.cos(t*Math.PI))/2
I think d is distance there and t is time, I havent looked at it enough to figure if thats right, I know he likes Maths and Physics and thats what t and d usually are.

You have to tell us though, do you know how to move stuff around with JS ?
I take it you do, then for "smooth" movement all you need is tiny increments (+1) with a low enough timeout/interval like 20 or 30 ms.
var x=0;
function poo() {
x+=1;
document.all.layername.pixelLeft=X;
if(x<200) setTimeout('poo()',20);
}
that will shoot a layer to the right quite smoothly until its at 200 px in IE.



« BackwardsOnwards »

Show Forum Drop Down Menu