| Page 1 of 1 | [ 3 posts ] |
|
Hello there,
Just like the title states, is there a way to create a barber pole like animation with YUI or pure javascript? You might ask, what does he mean 'barber pole like'? Well, you have animated gifs that do a simple animation, however, these animations are prone to stop or halt before the action you are waiting on has finished executing. Therefore, a javascript animation seems like a better option in this situation. I was wondering if anyone has stumbled upon a tutorial or a simple explanation on how to get started with something this straight forward. If you can guide me on the right path it would help me a lot. Thanks in advanced. |
Matt ParkerYUI Contributor
|
Hi,
If you really want to, I can think of two approaches: 1. use the Anim widget to move an image with a red shape in it, or move a background image, or something like that. I reckon that'd be easier than... 2. use the canvas tag and some js to draw the barbers pole shape and move it. I reckon this might be a bit trickier, but nicer and more satisfying to do! But easiest of all is the good ol animated gif! Have fun... Matt |
|
Thanks for this one..
Philips Babyphone
|
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group