Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery Shake UI problem

Using jQuery UI's shake effect causes element to run over to the newline, shake, and then run back. I tried changing the position css, etc, but short of hacking it, I feel like there is a normal, elegant solution.

http://jsfiddle.net/ShhER/6/

I want to say it's a bug, but it's probably not...any ideas?

like image 973
delphi Avatar asked Apr 14 '11 01:04

delphi


2 Answers

The element being animated should be block level, or have display: block explicitly on it.

I set display: block, and then adjusted the label's css accordingly. It worked fine.

jsFiddle.

like image 197
alex Avatar answered Oct 28 '22 22:10

alex


I found that jQuery adding wrapper to the element with class ui-effects-wrapper So adding this css solved my problem.

.ui-effects-wrapper {
        display:inline;
    }
like image 34
Ruhul Amin Avatar answered Oct 28 '22 22:10

Ruhul Amin