首页 > Web开发 > 详细

jquery 路径动画贝塞尔动画

时间:2019-11-13 21:20:00      阅读:91      评论:0      收藏:0      [点我收藏+]

jquery 路径动画贝塞尔动画

<pre>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
div{
position: absolute;
top: 0px;
left: 0px;
}
#box{
width: 200px;
height: 200px;
background: red;
}
#conn{
width:20px;
height: 20px;
background: green;
position: absolute;
left:10%;
top:10%;
}
</style>
</head>
<body>
<div id="conn"></div>
<script type="text/javascript" src="/youmenghengda/js/TweenMax.js" ></script>
<script>

TweenMax.to(‘#conn‘, 5, {bezier:[{left:"10%", top:"10%"}, {left:"30%", top:"30%"}, {left:"50%", top:"10%"}], repeat:10,yoyo:true, ease:Power1.easeInOut});


</script>
</body>
</html>
</pre>

jquery 路径动画贝塞尔动画

原文:https://www.cnblogs.com/newmiracle/p/11853132.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!