Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 13th, 2003, 10:51 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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????

Reply With Quote
  #2  
Old March 14th, 2003, 10:34 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: looking for advanced javascript animation help

does this help? looks like a smooth transition to me

Reply With Quote
  #3  
Old March 14th, 2003, 08:33 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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

Reply With Quote
  #4  
Old March 15th, 2003, 06:07 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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?

Reply With Quote
  #5  
Old March 18th, 2003, 09:33 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > looking for advanced javascript animation help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT