I found following code in multiple places to slide left/right:
$('#hello').hide('slide', {direction: 'left'}, 1000);
However, i can't get it working. Here is minimalistic test which I am trying:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function() {
$("#test").click(function() {
$('#hello').hide('slide', {direction: 'left'}, 1000);
});
});
</script>
</head>
<body>
<article >
<div id="hello">
Hello
</div>
<p><span id="test">Test</span>
</arcticle>
</body>
I tried it in Chrome and Safari and it doesn't work.
What is the problem? Are there other working methods to slide left/right?