I'm adding a slide menu effect to my site using jQuery UI, but I'm having a small and very odd issue. Here is my code:
$(document).ready(function(){
$(".menuitem").hide();
var url = window.location;
$('.menulink').filter(function() {
return this.href == url;
}).removeClass('menulink');
$($(".menuitem").get().reverse()).each(function(i, e) {
$(this).delay(i*400).toggle("slide");
});
});
Adding ", { direction: "left" }" after the "slide" makes the element appear instead of sliding.
Could it be my implementation of jQuery UI? This is the code I'm using:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>