I am using jQuery for a slider effect on button click. My code is:
$(document).ready(function() {
$("#mybutton").click(function () {
$("#slidemarginleft").hide("slide", { direction: "down" }, 1000);
});
});
When I click on the button, a JavaScript error occurs:
f.easing[e.animatedProperties[this.prop]] is not a function
The code snippet he provided is straight out of the jQuery UI documentation:
I just got this error and the issue was that the jQuery UI script wasn’t loaded (D’oh!). jQuery UI is required for the easing animations.
Try adding this to see if it resolves the problem: