Please help, I am trying to apply a slide up animation on a background image but I am not sure I am writing my code correctly.
Firstly, I am getting a type error: * is not a function
secondly, I think I need to add CSS styling property to background-position: -182px and not just bottom: '-182'
Code:
<script type="text/javascript">
$(document).ready(function() {
// on mouse over
$("ul#sections li#who").hover(function () {
// animate opacity to full
$(this).stop().animate({
bottom: '-182'
}, 'slow');
},
// on mouse out
function () {
// animate opacity to nill
$(this).stop().animate({
top: 0
}, 'slow');
});
});
</script>