|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
looking for advanced javascript animation help
Still have my shaking problem on animation and it is generally kinda of jerky.
does anyone know any techniques to make the animation smoother???? |
|
#3
|
|||
|
|||
|
RE: looking for advanced javascript animation help
moving an image is not a problem, I can do that.
my problem is resizing, because I am resizing and trying to keep the image centered, or to the right etc, the image has to move and for some reason that is shakey. The other thing I have an issue with is maintain aspect ratio 100% correectly. The way I do it, it calculate the % that one is from the other and then apply that when ever I resize in one direction. same too with the movement, I work out the new position baesed on the inital values. It is a little hard to explain, see an example http://builder.hysteriaweb.net/index.php?page=999 it is not bad, but I wish to get it better if you or anyone else has an tips, please let me know |
|
#4
|
|||
|
|||
|
RE: looking for advanced javascript animation help
1) it looks ok to me
2) if you are scaling the image width a pixel at a time, and it is "bumpy" from left to right, maybe you can try droping it 2 pixels at a time? |
|
#5
|
|||
|
|||
|
RE: looking for advanced javascript animation help
my main problem seems to be unsolvable, the animation is controlled by the users.
I do the calcs by factors. I say ok, the image is this wide, the height is 11% of that then I say ok, the center right now is here, the the image new width halved + that value is the position. so calc all of that to get the best possible result. problem is that aspect ration is not being acuratly maintained because the fractions are so small and the movement is shakey because I have to do one pixel at a time. so it appears it is as good as I am going to get, I was trying to rival flash but that is a pipedream. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > looking for advanced javascript animation help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|