移动一个位置绝对图像
Move a position absolute image
$("#plane").animate({
"opacity" : 0.8
"margin-left" : 0
},10000).fadeOut('slow');
<div class="LogoBG">
<span class="plane" id="plane">
<img src="<?php echo ROOTPATH ?>img/plane.png" alt="" />
</span>
</div>
.LogoBG .plane {
float:right; margin-left:666px;position:absolute;
}
我想把对象从margin-left:666移动到0。此外,我想淡化图像时,是在的margin-left属性小于<333. 如果可以的话。
谢谢
这个呢:
$(document).ready(function() {
$("#plane").animate({'margin-left': 333}, 1000, 'linear')
.animate({'margin-left': 0, 'opacity':0}, 1000, 'linear');
});
试试这个:
$("#plane").animate(
{"margin-left": 333},
5000,
'linear',
function(){
$(this).animate(
{"opacity": 0, "margin-left": 0},
5000,
'linear'
);
}
);
下面是测试它的方法:
http://jsfiddle.net/5BZR3/4/
相关文章:
- 在固定位置显示随机图像
- 如何将图像准确地放置在菜单位置
- javascript背景图像位置循环
- 如何在调整浏览器大小时将图像保持在适当位置
- 100%的父图像.父级是固定位置的
- 有人知道有没有jquery插件可以在图像上写文本,并让用户将其放置在图像内的任何位置
- 使用Planetary.js将图像放置在适当位置
- Google Places API显示雷达搜索中的位置图标/图像
- 使用JavaScript功能切换图像位置
- 根据客户的地理位置、邮政编码和位置切换图像
- 通过传递的参数位置获取jQuery中图像的宽度
- 使用javascript获取多个图像的位置
- Photoshop脚本:将图像移动到位置x,y
- 如何使某个框等于图像HTML的位置
- JavaScript 动态更改图像 src 的位置 - NO JQuery
- 我想滚动放大和缩小一个图像,但也有针在该图像上保持正确的位置.jQuery
- 固定图像滚动移动位置
- 需要帮助修复图像JS的动态位置
- 使用javascript和php,在单击图像时将其移动到另一个位置
- 处理溢出的负位置图像:自动