国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁htmltransitionAnimation - 如何使用CSS3 transition開始和結(jié)束事件

Animation - 如何使用CSS3 transition開始和結(jié)束事件

我們想知道如何使用CSS3 transition開始和結(jié)束事件。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.7.1.js'></script>
<style type='text/css'>
div {
  width: 50px;
  height: 50px;
  background: #EEE;
  border-radius: 50px;
  box-shadow: 0 0 10px orange;
  transition: all 1s ease-in-out;
  -webkit-transition: all 1s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  -ms-transition: all 1s ease-in-out;
}

div.animate {
  margin-left: 150px;
  box-shadow: 0 0 30px orange;
}
</style>
<script type='text/javascript'>
$(function(){
    $('#trigger').on('mouseover',function(){
        $(this).toggleClass('animate');
        $('#debug').html('Animation started');
    });
    $('#trigger').on('webkitTransitionEnd moztransitionend transitionend oTransitionEnd', function () {
        $('#debug').html('Animation ended');
    });
});
</script>
</head>
<body>
  <div id='trigger'></div>
  <p id='debug'></p>
</body>
</html>