javascript - "Driving"使用 javascript/jquery 到位效果

标签 javascript jquery google-maps animation

我有一张谷歌地图,上面有几个州的标记。标记是卡车,我想在安装到位之前在页面加载中设置卡车“行驶”的效果。

如何使用 jQuery 实现这种效果?

最佳答案

$(function(){
    $('.truck').each(function(i){
        var _this = $(this);
        setTimeout(function(){
            _this.animate({
                left: '300px',
                top: i * 150 + 'px'
            },'easeOutQuint');
        },500 * i);
    });
});

工作演示:http://jsfiddle.net/AlienWebguy/taaxQ/

关于javascript - "Driving"使用 javascript/jquery 到位效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7012230/

相关文章:

javascript - 单击折线时如何显示信息窗口

javascript - 尝试复制粘贴输入字段的值时 : Cannot read property 'nodeType' of undefined

javascript - HTML : Body bigger height than its content

javascript - 无法设法从文件名中删除变音符号

javascript - 如何在退出悬停状态后单击替换图像并重置为原始图像

javascript - Ajax 数据类型 : JSON respond is: OK but No output?

javascript - 鼠标单击按钮时更改悬停颜色

javascript - 元素偏移量始终为 0

android - 从 firebase 检索数据到谷歌地图

javascript - 选择经度和纬度最接近的记录