I have tried using easing so many times for education purposes but in vain my trials never succeeded surely I did something wrong but for two days now I could not identify the mistake, so I include here my jQuery function and hoping you will tell me where is the problem.
The result of the attached code is just hiding instead of animating
$(document).ready(function()
{
$('#hide').click(
function()
{
$('p').toggle(
function()
{
$('p').animate({'padding':'=+150px'},3000,'swing')
},
function()
{
$('p').animate({'padding':'=-150px'},3000,'linear')
}
);
}
)
})
Hello world!
– Neo Mar 20 '13 at 08:56