Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
body { background: #333; } #container { position: relative; height: 100%; width: 100%; } #owl { position: absolute; left: 50%; -webkit-transform: translate(-50%, 0%); transform: translate(-50%, 0%); } #ear1_1 { position: absolute; width: 190px; height: 68px; background: #779943; border-radius: 130px / 50px; top: 20px; left: 210px; -webkit-transform: scale(0.5) rotate(-80deg); transform: scale(0.5) rotate(-80deg); } #ear1_2 { position: absolute; width: 190px; height: 68px; background: #779943; border-radius: 130px / 50px; top: 8px; left: 245px; -webkit-transform: scale(0.5) rotate(45deg); transform: scale(0.5) rotate(45deg); } #ear1_3 { position: absolute; width: 60px; height: 60px; background: #779943; border-radius: 150px; top: 37px; left: 295px; -webkit-transform: scale(1) rotate(45deg); transform: scale(1) rotate(45deg); } #ear2_1 { position: absolute; width: 190px; height: 68px; background: #779943; border-radius: 130px / 50px; top: 20px; left: 464px; -webkit-transform: scale(0.5) rotate(80deg); transform: scale(0.5) rotate(80deg); } #ear2_2 { position: absolute; width: 190px; height: 68px; background: #779943; border-radius: 130px / 50px; top: 8px; left: 429px; -webkit-transform: scale(0.5) rotate(-45deg); transform: scale(0.5) rotate(-45deg); } #ear2_3 { position: absolute; width: 60px; height: 60px; background: #779943; border-radius: 150px; top: 37px; left: 499px; -webkit-transform: scale(1) rotate(-45deg); transform: scale(1) rotate(-45deg); } #owl_body { position: absolute; width: 220px; height: 250px; background: #779943; border-radius: 180px / 200px; top: 157px; left: 320px; -webkit-transform: scale(2); transform: scale(2); } #eye1_1 { position: absolute; width: 180px; height: 180px; background: #e7e99e; border-radius: 150px; top: 80px; left: 265px; -webkit-transform: scale(1); transform: scale(1); } #eye2_1 { position: absolute; width: 180px; height: 180px; background: #e7e99e; border-radius: 150px; top: 80px; left: 416px; -webkit-transform: scale(1); transform: scale(1); } #eye1_2 { position: absolute; width: 180px; height: 180px; background: #779943; border-radius: 150px; top: 70px; left: 265px; -webkit-transform: scale(0.8); transform: scale(0.8); } #eye2_2 { position: absolute; width: 180px; height: 180px; background: #779943; border-radius: 150px; top: 70px; left: 416px; -webkit-transform: scale(0.8); transform: scale(0.8); } #eye1_3 { position: absolute; width: 180px; height: 180px; background: #ffffff; border-radius: 150px; top: 70px; left: 265px; -webkit-transform: scale(0.67); transform: scale(0.67); } #eye2_3 { position: absolute; width: 180px; height: 180px; background: #ffffff; border-radius: 150px; top: 70px; left: 416px; -webkit-transform: scale(0.67); transform: scale(0.67); } #eye1_4 { position: absolute; width: 180px; height: 180px; background: #1c260d; border-radius: 150px; top: 70px; left: 265px; -webkit-transform: scale(0.2); transform: scale(0.2); -webkit-transition: all 1s; transition: all 1s; } #eye2_4 { position: absolute; width: 180px; height: 180px; background: #1c260d; border-radius: 150px; top: 70px; left: 416px; -webkit-transform: scale(0.2); transform: scale(0.2); -webkit-transition: all 1s; transition: all 1s; } #beak { position: absolute; top: 200px; left: 400px; border-top: 55px solid #fc9627; border-left: 30px solid transparent; } #beak1 { position: absolute; top: 200px; left: 428px; border-top: 55px solid #fc9627; border-right: 30px solid transparent; } #bellyContainer { position: absolute; width: 221px; height: 160px; background: #e7e99e; border-radius: 221px / 160px; top: 310px; left: 320px; -webkit-transform: scale(1.5); transform: scale(1.5); } #b11 { position: absolute; width: 90px; height: 90px; background: #597332; border-radius: 150px; top: 400px; left: 315px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b11_1 { position: absolute; width: 90px; height: 90px; background: #e7e99e; border-radius: 150px; top: 385px; left: 315px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b12 { position: absolute; width: 90px; height: 90px; background: #597332; border-radius: 150px; top: 400px; left: 386px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b12_1 { position: absolute; width: 90px; height: 90px; background: #e7e99e; border-radius: 150px; top: 385px; left: 386px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b13 { position: absolute; width: 90px; height: 90px; background: #597332; border-radius: 150px; top: 400px; left: 456px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b13_1 { position: absolute; width: 90px; height: 90px; background: #e7e99e; border-radius: 150px; top: 385px; left: 456px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b21 { position: absolute; width: 100px; height: 100px; background: #597332; border-radius: 150px; top: 340px; left: 266px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b21_1 { position: absolute; width: 100px; height: 100px; background: #e7e99e; border-radius: 150px; top: 325px; left: 266px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b22 { position: absolute; width: 100px; height: 100px; background: #597332; border-radius: 150px; top: 340px; left: 343px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b22_1 { position: absolute; width: 100px; height: 100px; background: #e7e99e; border-radius: 150px; top: 325px; left: 343px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b23 { position: absolute; width: 100px; height: 100px; background: #597332; border-radius: 150px; top: 340px; left: 421px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b23_1 { position: absolute; width: 100px; height: 100px; background: #e7e99e; border-radius: 150px; top: 325px; left: 421px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b24 { position: absolute; width: 100px; height: 100px; background: #597332; border-radius: 150px; top: 340px; left: 499px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b24_1 { position: absolute; width: 100px; height: 100px; background: #e7e99e; border-radius: 150px; top: 325px; left: 499px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b31 { position: absolute; width: 90px; height: 90px; background: #597332; border-radius: 150px; top: 290px; left: 315px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b31_1 { position: absolute; width: 90px; height: 90px; background: #e7e99e; border-radius: 150px; top: 275px; left: 315px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b32 { position: absolute; width: 90px; height: 90px; background: #597332; border-radius: 150px; top: 290px; left: 386px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b32_1 { position: absolute; width: 90px; height: 90px; background: #e7e99e; border-radius: 150px; top: 275px; left: 386px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b33 { position: absolute; width: 90px; height: 90px; background: #597332; border-radius: 150px; top: 290px; left: 456px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #b33_1 { position: absolute; width: 90px; height: 90px; background: #e7e99e; border-radius: 150px; top: 275px; left: 456px; -webkit-transform: scale(0.8) rotate(45deg); transform: scale(0.8) rotate(45deg); } #wing1_1 { position: absolute; width: 200px; height: 68px; background: #779943; border-radius: 200px / 68px; top: 280px; left: 590px; -webkit-transform: scale(0.7) rotate(42deg); transform: scale(0.7) rotate(42deg); } #wing1_2 { position: absolute; width: 200px; height: 68px; background: #779943; border-radius: 200px / 68px; top: 305px; left: 574px; -webkit-transform: scale(0.7) rotate(65deg); transform: scale(0.7) rotate(65deg); } #wing1_3 { position: absolute; width: 200px; height: 68px; background: #779943; border-radius: 200px / 68px; top: 300px; left: 545px; -webkit-transform: scale(0.7) rotate(90deg); transform: scale(0.7) rotate(90deg); } #wing2_1 { position: absolute; width: 200px; height: 68px; background: #779943; border-radius: 200px / 68px; top: 280px; left: 68px; -webkit-transform: scale(0.7) rotate(-42deg); transform: scale(0.7) rotate(-42deg); } #wing2_2 { position: absolute; width: 200px; height: 68px; background: #779943; border-radius: 200px / 68px; top: 305px; left: 89px; -webkit-transform: scale(0.7) rotate(-65deg); transform: scale(0.7) rotate(-65deg); } #wing2_3 { position: absolute; width: 200px; height: 68px; background: #779943; border-radius: 200px / 68px; top: 300px; left: 113px; -webkit-transform: scale(0.7) rotate(-90deg); transform: scale(0.7) rotate(-90deg); } #leg1_1 { position: absolute; width: 200px; height: 68px; background: #fc9627; border-radius: 200px / 68px; top: 487px; left: 240px; -webkit-transform: scale(0.4) rotate(-47deg); transform: scale(0.4) rotate(-47deg); } #leg1_2 { position: absolute; width: 200px; height: 58px; background: #fc9627; border-radius: 200px / 58px; top: 495px; left: 253px; -webkit-transform: scale(0.4) rotate(-85deg); transform: scale(0.4) rotate(-85deg); } #leg1_3 { position: absolute; width: 200px; height: 68px; background: #fc9627; border-radius: 200px / 68px; top: 491px; left: 266px; -webkit-transform: scale(0.4) rotate(-115deg); transform: scale(0.4) rotate(-115deg); } #leg2_1 { position: absolute; width: 200px; height: 68px; background: #fc9627; border-radius: 200px / 68px; top: 487px; left: 426px; -webkit-transform: scale(0.4) rotate(47deg); transform: scale(0.4) rotate(47deg); } #leg2_2 { position: absolute; width: 200px; height: 58px; background: #fc9627; border-radius: 200px / 58px; top: 495px; left: 413px; -webkit-transform: scale(0.4) rotate(85deg); transform: scale(0.4) rotate(85deg); } #leg2_3 { position: absolute; width: 200px; height: 68px; background: #fc9627; border-radius: 200px / 68px; top: 491px; left: 400px; -webkit-transform: scale(0.4) rotate(115deg); transform: scale(0.4) rotate(115deg); } #owl:hover #wing1{ -webkit-transition: transform-rotate 1s; transition: transform-rotate 1s; -webkit-transform-origin: 0px 0px; transform-origin: 0px 0px; -webkit-transform: translate(-70px, 360px) rotate(-30deg); transform: translate(-70px, 360px) rotate(-30deg); } #owl:hover #wing2{ -webkit-transform-origin: 0px 0px; transform-origin: 0px 0px; -webkit-transform: translate(186px, -70px) rotate(30deg); transform: translate(186px, -70px) rotate(30deg); } #owl:hover #ear1{ -webkit-transition: all 0.4s; transition: all 0.4s; -webkit-transform: translate(-5px, -5px); transform: translate(-5px, -5px); } #owl:hover #ear2{ -webkit-transition: all 0.4s; transition: all 0.4s; -webkit-transform: translate(5px, -5px); transform: translate(5px, -5px); } #owl:hover #eye1_4{ -webkit-transform: scale(0.3); transform: scale(0.3); } #owl:hover #eye1_4{ -webkit-transform: scale(0.27); transform: scale(0.27); } #owl:hover #eye2_4{ -webkit-transform: scale(0.27); transform: scale(0.27); }
JavaScript
var owl = document.getElementById('owl'); owl.style.transform = "translate(-220px, 150px) scale(0.5)"; var eye1 = document.getElementById('eye1_4'); var eye2 = document.getElementById('eye2_4'); //The eyes movements window.onmousemove = function(e){ if (e.clientX > window.innerWidth/2 + 90) { eye1.style.left = "285px"; eye2.style.left = "436px"; } if (e.clientX < window.innerWidth/2 - 100) { eye1.style.left = "245px"; eye2.style.left = "396px"; } if ((e.clientX <= window.innerWidth/2 + 90) && (e.clientX >= window.innerWidth/2 - 100)) { eye1.style.left = "265px"; eye2.style.left = "416px"; } if (e.clientY > 170) { eye1.style.top = "90px"; eye2.style.top = "90px"; } if (e.clientY < 300) { eye1.style.top = "50px"; eye2.style.top = "50px"; } if ((e.clientY <= 300) && (e.clientY >= 170)) { eye1.style.top = "70px"; eye2.style.top = "70px"; } }
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS猫头鹰-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号