Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Help with my animation


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 thefollower   Members   -  Reputation: 229

Like
0Likes
Like

Posted 15 November 2013 - 08:46 PM

I have an animation which shows a circle going round a fixed point.

 

The circle is suppose to keep its line within the blue square no matter how large the circle becomes, but the larger it is the more offset it is and i have no idea how to correct for this....

 

See interactive example:

http://jsfiddle.net/78n6t/

 

As you zoom in the (thus the circle is bigger), you will notice it is bouncing more and more out of the blue box, until eventually its miles off!

 

This is what i see:

G3iHize.gif

 

 

How ever other people are seeing this:

lR4wnE8.gif

 

 

It is not making much sense to me at the moment! I need help :(


Edited by thefollower, 15 November 2013 - 09:24 PM.


Sponsor:

#2 xDarkShadowKnightx   Members   -  Reputation: 547

Like
1Likes
Like

Posted 16 November 2013 - 12:06 AM

HI! I went ahead and looked at your jsfiddle in both chrome and firefox and noticed that:

In chrome, the offset becomes larger and larger the more you zoom in. This is what your first image is showing.

While in firefox, there's almost no offset what so ever. (the second image that other people are seeing)

So either your code isn't cross browser friendly (it appears to be fine). Or the browsers are just rendering the circle differently. In that case, theirs not much you can really do about it other than report an issue to the chrome developers (here's a link explaining how to do this) https://support.google.com/chrome/answer/95315?hl=en

 

You'll also have to consider what other browsers your app may end up being viewed on, and whether or not they render the circle correctly too.

 

Hope this helps! Goodluck!
 


Edited by xDarkShadowKnightx, 16 November 2013 - 12:07 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS