running 2 effects one after another causes the element position to change before the second effect
When I run 2 effects one immediatley after the other, before the second effect happens the position of the element is changed from:
- position: absolute;
- top: 245px;
- left: 460px;
to
- position: relative;
- top: 0;
- left: 0;
This is the jQuery code I am using:
- function runEffects()
- {
- jQuery(".GasTestClass").effect("shake", 250);
- jQuery(".ExpiredClass").effect("bounce", 1000);
- }
The img element I am running the effects on:
- <img class="GasTestClass ExpiredClass" src="Images/Icons/Group.png" style="position: absolute; left: 460px; top: 245px; z-index: 11;">
Why does it change the positioning of the img element? Is this a bug in jQuery UI or am I soing something wrong?
I shouldn't have to position the element again after the first effect has taken place.
Thanks in advance.