I am developing a wordpress
plugin, where I have to move content in slider from left to right and right to left.
I just tried as:
var effect = 'slide';
// Set the options for the effect type chosen
var options = { direction: 'right' };
// Set the duration (default: 400 milliseconds)
var duration = 700;
jQuery("#letsee").html(data).hide().toggle(effect, options, duration);
see the reference jsfiddle
So what should I do to make it run. I am appling this for response of ajax.
Problem: There is no effect like jsfiddle example, and content is just coming without any effect.
So how can I make the slide left to right, right to left…
Thanks in advance
It seems like you missed including jQuery UI library.
Hope this will help !
in your code data variable is undefined
fiddle : Check this