HTML5动画实例

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CarAnimation</title>
<style>
html, body { margin:0; padding:0; }
.box { position:absolute; width:100%; height:100%; background:black; overflow:hidden; }
.car, .car .front, .car .back { background-image: url("data:image/jpg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgBewJYAwERAAIRAQMRAf/EALAAAQABBQEBAAAAAAAAAAAAAAAEAgMFBgcBCAEBAQACAwEAAAAAAAAAAAAAAAEDBAIFBgcQAAICAQMBBAQJCAYEDAcBAAABAgMEEQUGEiExEwdBUWFxgZGhsSIychQIwUJSsiMzFRZigpKicyRDU4OE0cLSY5Ozw9M0RCUX4eKjxDVFGKQRAQABAgQEBQMFAAAAAAAAAAABAgMRITEEQVEFBmGRodEScYGxweEiYjP/2gAMAwEAAhEDEQA/APlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//2Q=="); background-repeat:no-repeat; }
.car {
    -webkit-transform:translate(100px, 300px);
    width:511px;
    height:145px;
    background-position:-49px -103px;
    -webkit-animation-name:'carmove';  /* 设置引用动画 */
    -webkit-animation-iteration-count:infinite;  /* 设置执行次数为无穷 */
    -webkit-animation-timing-function:ease;  /* 设置时间变化函数为逐渐变换 */
    -webkit-animation-direction:alternate;  /* 设置动画结束后再反向执行 */
}
.car .front, .car .back { position:absolute; width:66px; height:66px; border-radius:33px; }
.car .front { left:51px; top:72px; background-position:-100px -175px; }
.car .back { left:379px; top:80px; background-position:-428px -183px; }
.car .front, .car .back { -webkit-animation:alternate infinite 'wheelmove'; }

@-webkit-keyframes carmove {
    0% {
        -webkit-transform:translate(100px, 300px);
    }

    100% {
      -webkit-transform:translate(800px, 300px);
    }
}

@-webkit-keyframes wheelmove {
    0% {
        -webkit-transform:rotateZ(0deg);
    }
    
    100% {
        -webkit-transform:rotateZ(360deg);
    }
}
</style>
<script>
window.onload = function () {
    var oCar = document.querySelectorAll('.car')[0],  // 车对象
        oBack = oCar.querySelectorAll('.back')[0],  // 后轮对象
            oFront = oCar.querySelectorAll('.front')[0],  // 前轮对象
            iDuartion = 5000,  // 动画总时长
            iDelay = 3000,  // 动画延时
            timer = null;  // 定时器
    
  play(iDuartion, iDelay);  // 执行动画
    
    // 动画结束后暂停动画函数及清除定时器
    timer = setTimeout(function () {
        pause();  // 暂停动画
        clearTimeout(timer);  // 清除定时器
        alert('动画结束');
    }, iDelay + iDuartion);
    
    function pause() {
        oCar.style.WebkitAnimationPlayState = 'paused';  // 暂停车动画
        oBack.style.WebkitAnimationPlayState = 'paused';  // 暂停后轮动画
        oFront.style.WebkitAnimationPlayState = 'paused';  // 暂停前轮动画
    }
    
    function play(duration, delay) {
      oCar.style.WebkitAnimationDuration = duration + 'ms';  // 设置车动画时长
      oBack.style.WebkitAnimationDuration = duration + 'ms';  // 设置后轮动画时长
      oFront.style.WebkitAnimationDuration = duration + 'ms';  // 设置前轮动画时长
      oCar.style.WebkitAnimationDelay = delay + 'ms';  // 设置车动画延时
      oBack.style.WebkitAnimationDelay = delay + 'ms';  // 设置后轮动画延时
      oFront.style.WebkitAnimationDelay = delay + 'ms';  // 设置前轮动画延时
    }
};
</script>
</head>

<body>
<div class="box">
  <div class="car">
    <div class="front"></div>
    <div class="back"></div>
  </div>
</div>
</body>
</html>

 

posted @ 2013-07-10 14:20  baiezone  阅读(1630)  评论(0编辑  收藏  举报