I have a very simple piece of code taken directly from:
http://api.jqueryui.com/shake-effect/
I want to change it so the distance is 60 instead of the default 20.
This does not work:
$( "#toggle" ).effect( {distance:60} );
What is the correct code?
You need to define the type of effect along with
effectfunction. Something like this:Check the working jsFiddle – cL79S.