Hey, I work on the site with my friend, and from the very beginning our client was dissatisfied with the quality of one of our animations. This animation takes an image and makes it larger, then reduces it and repeats to get a pulsating effect. Transparency also changes throughout the animation.
The current animation is on the main page of the site http://laveryrowe.com . The animation in question is a 75 percent image that you can see immediately after arriving at the site.
I tested in safari, firefox and Internet explorer. The animation is only what makes the cut in firefox, however, safari and Internet explorer do not give a sufficiently smooth size for our client.
Does anyone know of a better animation method than the one I used? (see the code below and check out the site for an example).
function pulse() { $('#seventyfive').animate({ marginTop: 175, marginLeft: 25, width: 261, height: 98, opacity: 0.5 }, 700, function() { $('#seventyfive').animate({ marginTop: 161.95, marginLeft: 15.2, width: 287.1, height: 107.8, opacity: 1 }, 700, function() { pulse(); }); }); };
Thanks a lot in advance, we could really use a hand,
Edit: The problem is not with positioning (or at least I donβt think so), it has more to do with image resizing, you may notice when they get bigger. It seems to look better as the opacity increases, but I need the same quality when it is opaque.
Jai
jquery image resize scale effect
Jai
source share