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
jQuery UI slider is used to obtain a numeric value within a certain range. The main advantage of slider over text input is that it becomes impossible for the users to enter an invalid value. Every value they can pick with the slider is valid.
JQuery supports three sliding methods that are slideUp(), slideDown(), and slideToggle(). The slideUp() or slideDown() methods slide the elements in upward or downward directions respectively. Alternatively, the slideToggle() method determines whether the element is in the slideUp() state or in slideDown().
jQuery skdslider is a lightweight and easy-to-use jQuery plugin that allows you to create a responsive and full-width image slider with auto-play, dots/number navigation and fade animation support.
WOWSlider is free for non-commercial use.
The code snippet he provided is straight out of the jQuery UI documentation:
$("div").click(function () {
$(this).hide("slide", { direction: "down" }, 1000);
});
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:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js"></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With