Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
html { box-sizing:border-box; } *,*:before,*:after { box-sizing:inherit; } body { background:#008fce;overflow: hidden } body,html { height:100%; width:100%; margin:0; padding:0; } body { display:flex; align-items:center; justify-content:center; } .container { position:relative; display:flex; align-items:center; justify-content:center; width:800px; height:600px; visibility:hidden; } .spot { width:300px; height:300px; background:rgba(0,0,0,0.05); border-radius:50%; } .amp { position:absolute; top:0; left:0; } .me { position:fixed; z-index:1000; top:24px; left:24px; display:flex; flex-direction:column; } .me__link { position:relative; margin-bottom:16px; color:white; font-family:Helvetica,sans-serif; text-decoration:none; font-size:16px; } .me__link span { display:block; position:absolute; bottom:-3px; left:0; height:1px; width:5%; background-color:white; content:""; transition:width 0.3s; } .me__link:hover span { width:100%; } .twitter-icon { position:fixed; top:16px; right:24px; display:block; width:40px; height:40px; }
JavaScript
var $body = $('body'), $amp = $('.amp'), $amp1 = $('.amp1'); TweenMax.set('.container', { visibility: 'visible' }); function initTilt() { TweenMax.set(".container", {perspective: 100, scale: 2}); TweenMax.set('.amp', { transformStyle: "preserve-3d" }); // thicker to thin TweenMax.set('.amp1', { z: -80, scale: 1.0 }); TweenMax.set('.amp2', { z: -60, scale: .89 }); TweenMax.set('.amp3', { z: -40, scale: .78 }); TweenMax.set('.amp4', { z: -20, scale: .67 }); TweenMax.set('.amp5', { z: 0, scale: .56 }); TweenMax.staggerTo('.amp', 0.4, { // scale: '+=0.05', z: '+=10', yoyo: true, repeat: -1, ease:Sine.easeInOut }, 0.07); $body.mousemove(function(e) { rotate(e.pageX, e.pageY) }); window.addEventListener('touchstart', function(e) { clientX = e.touches[0].clientX; clientY = e.touches[0].clientY; // e.preventDefault(); rotate(clientX, clientY); }, false); }; function rotate(cx, cy) { var sxPos = (cx / $body.width()*100 - 50)*2 ; var syPos = (cy / $body.height()*100 - 50)*2; $amp.each(function() { TweenMax.to($(this), 3, { rotationY: -0.3 * sxPos, rotationX: 0.3 * syPos, transformOrigin: "center center -200", ease: Expo.easeOut }); }); } $body.mouseleave(function() { rotate($body.width()/2, $body.height()/2); }) initTilt();
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>脉冲3d-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号