jquer指针放到图片上移动效果
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="js/jquery-1.11.2.js">
</script>
<script>
$(document).ready(function() {
$("div").mouseover(function() {
$("div").animate({
bottom: '-=250px',
opacity: '0.5',
});
});
});
</script>
</head>
<body>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;">
</div>
</body>
<script>
$(document).ready(function() {
$("div").mouseover(function() {
$("div").animate({
bottom: '+=250px',
opacity: '0.5',
});
});
});
</script>
</html>