jquery-animate

jQuery .animate() not animating backgroundPosition in IE

I'm trying to animate a background image to move down a set amount of pixels but remain in the center of the page. Upon another click of an element I need it to move back to the top, but still remain in the center. Below is the current code: $(document).ready(function() { $('#email_campaigns').click(function(){ ...

Jquery Animation callback affecting the wrong elements

Hey I trying to make a sort of slider but having a problem getting the loop to 'reset'. The idea is to have the elements animated to fade opacity and when finished make them hidden so that the ".is(:visible)" won't be triggered after the loop has been reset. However the callback function is affecting the elements that are having their op...

Problem with jQuery animate when I replace an inner div

The page section is: <div id="cartslide"> <div id="swrapper"> content goes here </div> </div> jquery animate section: $(document).ready(function () { $('#animate-both').click(function () { $('#cartslide').animate({ opacity: 'toggle', height: 'toggle' }); }); }); So far, this works perfectly. ...

JQUERY animate Delay?

I'm using JQUERY animate to show a banner at the top of the page, which is a DIV that is set to top -60 to hide it. I'm using the following JS call to show the div: // Animation $('#message-dock').animate({ top: 0 }, 500, function() { // Animation complete. }); What I can't figure out is for some reason there is an unwanted de...

What information can i get from the jQuery's animate step method on each step?

Hi guys, I got a vertical testimonials belt and i have this method that animates its top value with a calculated value (depending on the height of the current testimonial) every few seconds. Now when a user hovers over it, it stops right away (via .stop() and also the interval is cleared via clearInterval(idOfinterval) But i stil...

jquery function applying to the same class with a delay

Okay, I'm trying to be clear on this one... I have some insliding boxes, all with the same class .box When the page loads I want these slide in from the left. This works perfect according to this code: $(document).ready(function(){ $(".box").animate({left: "-=920px", opacity: "1"}, 1250) return false; }); Now all the boxes ar...

jquery problem with animate function

Hello., I animate a div with jquery. You can see my animation here. On the bottom of the page you click on the call me button. Now you see a animation that i make with jquery. http://www.mikevierwind.nl/test/ Now my animation going wrong. I used this jquery code for the animation. nieuwsbrief_formulier_open = true; $(this)...

In jQuery, how do I animate the "max-height" CSS property?

I can easily animate the "opacity" property $("#blah").animate({ opactiy: 0.5}, 1000); How can I animate the max-height css property... example: $("#blah").animate({ "max-height": 350}, 1000); (hint, that code doesn't work) EDIT: To answer the questions below: There are multiple images all of css class "blah" The images are of ran...

IE8 forces compatibility mode when using jquery.animate()

I've been fighting against IE8's compatibility mode all day and I'm about to chuck a brick at it. I have some code, which uses jquery 1.2 (yes it's old - can't change that), to search for some records in our web app. The results of the search can be clicked on to view the contents of the record (by using .animate() it opens a space und...

jQuery animate image zoom flickering

Hi! I'm trying to zoom an image using the jQuery animate function to resize its width and height. But when I change the left position (to center the picture on my "mask"), it's flickering... Someone knows how can I solve this? Or give me a better solution? Thank you all! =] ...

how to animate two things at the same time in jquery

i want to animate 2 things at same time when mouse hovers something. for example i want to change background color of box1 with id = "box1" and position of box2 with id="box2" when mouse hovers a div with id="trigger". but i don't want them to animate in a queue, i want them to start animating at same time and finish at same time! ...

Need continuous execution using a handler

Hi there I currently have to two links, two arrows one pointing up and the other down, what I want it to do is scroll content located in <div id="scroller1"> which is masked by <div id="scroller">. In other words: <div id="scroller"> <div id="scroller1">...</div> </div> My code looks like this: $("a.mouseover_up").mousedown(fun...

jquery animate one element after another

I'm trying to create a small sequence of animations with jQuery but cannot get it to work! HTML: <div class="outer"> <div class="inner"> <p>First line visable.</p> <span class="expand">Read more</span> <p class="fade">Line one</p> <p class="fade">Line two</p> <p class="fade">Line three</p> <p clas...

jquery script only works in IE 7 but I need cross compatibility...

Any reason as to why this script won't work in any other browser. HERE'S the JsFiddle The effect in IE 7, which is correct...is that the menu scrolls down and as you hover over the menu items and they animate by shifting to the right for the "on hover" of an <li> object. The effect in FF 3.5 is incorrect. The menu dropdowns, will scro...

jQuery animate not working in chrome/safari/ie

I have written a few lines of jQuery to animate a div to the left/right depending on mouse movements $(".galleryNav").mousemove(function(e){ $("#status").html(e.pageX +', '+e.pageY); if(e.pageX > 1100 && e.pageX < 1170){ $(".galleryNav").animate({marginLeft:"-60px"},{queue: false, duration: 450}); } if(e.pageX > 410 && e.p...

hover() backgroundColor problem

$('li > a').hover( function(){ $(this).animate({ backgroundColor: '#2a639a', color: '#fff' },300).corner('5px'); }, function(){ $(this).animate({ background: 'transparent', color: '#444' },300); } ); What's wrong with background: 'transparent'? turns back white, not transparent ...

HOW to create an IF ELSE statemtents for scrolling

I am looking to create an IF ELSE statement that says IF You reach the end of the UL LI, unbind click function from scroll button, ELSE bind click function $('#down').bind('click', function() { $(".project_thumbs").stop().animate({"top": "-=510px"}); }); $('#up').bind('click', function() { $(".project_thumbs").stop().animate({"to...

Should I stop animation before animating the element again in jQuery

Is it necessary to stop an animation, before animating the element again? For example, I am resizing an element from size [200, 200] to [800,800]. Half way between the animation, I want to resize the same element to [600,600] instead of [800,800]. Should I use .stop() to stop the animation before using the .animate() function on the s...

jQuery .animate() and jamming image while moving

Hi! How to make sleek animation with jQuery of image moving right or left. It's working much better in Firefox than in Chrome or IE. Especially bad is jamming when duration is set to 2000 or more. Here is a sample of my demo page: http://pastehtml.com/view/1bj06p8.html Code is: $('img#image').mousemove(function(e){ if (e.pageX...

jQuery issue when <div> is collapsed

Website located here: http://acs.graphicsmayhem.com/spoogs/index.php Code is located here: http://jsfiddle.net/vMM8Q/ (website for the calendar blocks uses ids instead of classes, not that it matters any) So the problem I'm facing is that when you collapse either the top-right or top-left Calendars in the first link, and than reload ...