欢迎登录

canvas的cxk动画

:2019-04-19    :300 次   :1363 字   

摘要:

    由canvas形成的动画,html代码比较简单,主要是js代码,可以用来学习canvas动画,内容很渣,代码很强。

代码:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,hight=device-hight,minimum-scale=1.0,maximum-scale=1.0,ser-scalable=none"/>
<title>鸡你太美!!!</title>
<style type="text/css">
body {
    margin: 0;
    padding: 0;
    position: relative;
    background-image: url(skin/images/xh.jpg);
    background-position: center;
    /*background-repeat: no-repeat;*/
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
}
#jk {
    width: 30%;
    position: fixed;
    right: 10px;
    bottom: 40px;
}
</style>
</head>
<body>
<script type="text/javascript" src="skin/js/threecanvas.js"></script> 
</body>
</html>

演示站点:

传入门

×