Tagged Questions
190
votes
19answers
206k views
jQuery animate backgroundColor
I am trying to animate a change in backgroundColor using jQuery on mouseover.
I have checked some example and I seem to have it right, it works with other properties like fontSize, but with ...
50
votes
7answers
102k views
Rotating a Div Element in jQuery
Trying to rotate a div element...This might be DOM blasphemy, could it work possibly with a canvas element? I'm not sure - if anybody has any ideas of how this could work or why it doesn't, I'd love ...
30
votes
3answers
19k views
Correct way to animate box-shadow with jQuery
Which is the correct syntax to animate box-shadow with jQuery?
$().animate({?:"0 0 5px #666"});
29
votes
5answers
19k views
How do you animate the value for a jQuery UI progressbar?
I've setup a jQuery UI progressbar but can't use jQuery animate to animate it's value. Any ideas on how to make this work?
The percentDone variable holds a number from 0 to 100 showing how far along ...
25
votes
2answers
11k views
jquery prepend + fadeIn
I have this code:
$.ajax({
url : url,
data : {ids : JSON.stringify(jsonids), hotel_id: hotel_id},
success : function(response)
{
$('#be-images ...
24
votes
1answer
23k views
jQuery animate scroll to ID on page load
Im tring to animate the scroll to a particular ID on page load. I have done lots of research and came across this:
$("html, body").animate({ scrollTop: $('#title1').height() }, 1000);
but this ...
24
votes
2answers
21k views
animating addClass/removeClass with jquery
I am using jQuery and jQuery-ui and want to animate various attributes on various objects.
For the sake of explaining the issue here I've simplified it to one div that changes from blue to red when ...
23
votes
11answers
52k views
jquery animate background position
I can't seem to get this working.
$('#product_family_options_dd').animate({
height: '300px',
width: '900px',
backgroundPosition: '-20px 0px',
},
The height and width animate but not ...
23
votes
11answers
25k views
JavaScript jQuery Animate to Auto Height
Hi I want to animate a div from 200px to Auto height. I cant seem to make it work though - anyone know how?
Here's the code:
$("div:first").click(function(){
$("#first").animate({
height: ...
20
votes
10answers
41k views
Fade the background-color of a span tag with JQuery
I'm trying to fade the background-color of a span tag using JQuery to emphasize when a change has occured. I was thinking the code would be someting like the following inside the click handler, but I ...
18
votes
3answers
21k views
jQuery animate css border-radius property (webkit, mozilla)
Is there a way in jQuery to animate the css3 border-radius property available in webkit and mozilla browsers?
I haven't found a plugin that will do it.
-webkit-border-radius
-moz-border-radius
...
18
votes
6answers
14k views
Animating inline elements with JQuery
I am trying to show and hide an inline element (eg a span) using jquery. If I just use toggle(), it works as expected but if I use toggle("slow") to give it an animation, it turns the span into a ...
18
votes
3answers
97 views
jQuery animate += and latest version
Each time I click the div "blue" it moves 100px. It worked well and one day I realize it stopped working. After trying a lot of things I discovered that the problem is with the latest version of ...
2
votes
1answer
286 views
Strange delay in jQuery animation in IE10
I am building a windows8 app using JavaScript.
I have the following methods:
var openBag = function () {
logTime('inside openBag');
$('#bag').stop().animate({
right: 0
}, {
...
1
vote
1answer
7k views
jQuery splash screen
I'm trying to create a jquery splash screen, I've found a perfect tutorial here: http://tutorialzine.com/2010/11/apple-style-splash-screen-jquery/ but need some help on modifying the script.
...