Animate Jquery addClass on hover
- by JamesOps
I'm new to Jquery so unsure how i would go about editing the code below to create a fade in when the class element is hovered over.
<script type="text/javascript">
<!--//--><![CDATA[//><!--
$(function() {
$('div.work-item').hover(function() {
}).hover(function() {
$(this).addClass("hover");
}, function(){
$(this).removeClass("hover");
});
});
//--><!]]>
Any pointers would be greatly appreciated.
Thanks!