Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Chillwave Lo-Fi Coffee
(hover me)
Retro Fingerstache
(hover me)
Gluten-Free Mixtape
(hover me)
Typewriter Mumblecore
(hover me)
css
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400|Raleway:300); *, *:before, *:after { box-sizing: border-box; } html { font-family: "Open Sans", Helvetica, arial, sans-serif; color: #333333; background-color: #eeeeee; } h1, h2, h3, h4, h5, h6 { font-family: "Raleway", "Open Sans", sans-serif; text-align: center; } a { color: #333333; text-decoration: none; } img { max-width: 100%; } .header { position: relative; overflow: visible; } .header:after { content: ''; position: absolute; bottom: 0; left: 50%; width: 50px; height: 2px; background-color: #b280c4; -webkit-transform: translateX(-50%); transform: translateX(-50%); } .pen__subheading { margin-bottom: 0; } .pen__subheading a { color: #b280c4; } .pen__subheading a:hover, .pen__subheading a:focus { color: #d2b4dc; } .container { width: 100%; max-width: 800px; margin: 0 auto; padding: 2rem 1rem; } .col { padding: 1rem; } @media (min-width: 800px) { .col { width: 50%; float: left; } .col:nth-of-type(2n+1) { clear: left; } } .col.col--full { width: 100%; } .main { overflow: hidden; } .block--split-image { position: relative; max-width: 400px; text-align: center; -webkit-perspective: 50px; perspective: 50px; } .block--split-image .block__content { position: relative; display: inline-block; z-index: 1; padding: 3rem 1.5rem; -webkit-transition: 0.25s ease-in-out; transition: 0.25s ease-in-out; } .block--split-image .block__content h2 { margin: 0; } .block--split-image .block__content:hover { opacity: 0; -webkit-transform: translateY(-15px); transform: translateY(-15px); } .block--split-image .block__content:hover + .block__image { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; -webkit-transform: rotate3d(0, 0, 0, 0deg) !important; transform: rotate3d(0, 0, 0, 0deg) !important; } .block--split-image .block__content:hover + .block__image .part-1 { -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .block--split-image .block__content:hover + .block__image .part-2 { -webkit-transform: translate(50%, -50%); transform: translate(50%, -50%); } .block--split-image .block__content:hover + .block__image .part-3 { -webkit-transform: translate(-50%, 50%); transform: translate(-50%, 50%); } .block--split-image .block__content:hover + .block__image .part-4 { -webkit-transform: translate(50%, 50%); transform: translate(50%, 50%); } .block--split-image .block__image { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; -webkit-perspective: 50px; perspective: 50px; -webkit-transition: 5s ease-in-out; transition: 5s ease-in-out; } .block--split-image .block__image .part { position: absolute; top: 50%; left: 50%; background-repeat: no-repeat; -webkit-transition: 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); transition: 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .block--split-image .block__image .part-1 { background-position: top left; } .block--split-image .block__image .part-2 { background-position: top right; } .block--split-image .block__image .part-3 { background-position: bottom left; } .block--split-image .block__image .part-4 { background-position: bottom right; } .block--split-image-1 { margin: 165px auto; } .block--split-image-1 .block__content { background-color: rgba(103, 144, 138, 0.9); } .block--split-image-1 .block__content:hover + .block__image .part { -webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); } .block--split-image-1 .block__content:hover + .block__image .part-1 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-1 .block__content:hover + .block__image .part-2 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-1 .block__content:hover + .block__image .part-3 { -webkit-transition-delay: 0.15s !important; transition-delay: 0.15s !important; } .block--split-image-1 .block__content:hover + .block__image .part-4 { -webkit-transition-delay: 0.1s !important; transition-delay: 0.1s !important; } .block--split-image-1 .block__image .part { margin-left: -125px; margin-top: -75px; width: 250px; height: 150px; background-image: url(https://unsplash.it/500/300?image=1052); } .block--split-image-1 .block__image .part-1 { -webkit-transform: translate(-63%, -68%) rotate3d(1, -1, -1, 3deg); transform: translate(-63%, -68%) rotate3d(1, -1, -1, 3deg); } .block--split-image-1 .block__image .part-2 { -webkit-transform: translate(72%, -68%) rotate3d(1, 1, -1, 3deg); transform: translate(72%, -68%) rotate3d(1, 1, -1, 3deg); } .block--split-image-1 .block__image .part-3 { -webkit-transform: translate(-71%, 61%) rotate3d(-1, -1, -1, 3deg); transform: translate(-71%, 61%) rotate3d(-1, -1, -1, 3deg); } .block--split-image-1 .block__image .part-4 { -webkit-transform: translate(70%, 73%) rotate3d(-1, 1, -1, 3deg); transform: translate(70%, 73%) rotate3d(-1, 1, -1, 3deg); } .block--split-image-2 { margin: 165px auto; } .block--split-image-2 .block__content { background-color: rgba(122, 108, 115, 0.9); } .block--split-image-2 .block__content:hover + .block__image .part { -webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); } .block--split-image-2 .block__content:hover + .block__image .part-1 { -webkit-transition-delay: 0.2s !important; transition-delay: 0.2s !important; } .block--split-image-2 .block__content:hover + .block__image .part-2 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-2 .block__content:hover + .block__image .part-3 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-2 .block__content:hover + .block__image .part-4 { -webkit-transition-delay: 0.15s !important; transition-delay: 0.15s !important; } .block--split-image-2 .block__image .part { margin-left: -125px; margin-top: -75px; width: 250px; height: 150px; background-image: url(https://unsplash.it/500/300?image=1044); } .block--split-image-2 .block__image .part-1 { -webkit-transform: translate(-74%, -66%) rotate3d(1, -1, -1, 3deg); transform: translate(-74%, -66%) rotate3d(1, -1, -1, 3deg); } .block--split-image-2 .block__image .part-2 { -webkit-transform: translate(73%, -65%) rotate3d(1, 1, -1, 3deg); transform: translate(73%, -65%) rotate3d(1, 1, -1, 3deg); } .block--split-image-2 .block__image .part-3 { -webkit-transform: translate(-73%, 59%) rotate3d(-1, -1, -1, 3deg); transform: translate(-73%, 59%) rotate3d(-1, -1, -1, 3deg); } .block--split-image-2 .block__image .part-4 { -webkit-transform: translate(77%, 60%) rotate3d(-1, 1, -1, 3deg); transform: translate(77%, 60%) rotate3d(-1, 1, -1, 3deg); } .block--split-image-3 { margin: 165px auto; } .block--split-image-3 .block__content { background-color: rgba(150, 153, 199, 0.9); } .block--split-image-3 .block__content:hover + .block__image .part { -webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); } .block--split-image-3 .block__content:hover + .block__image .part-1 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-3 .block__content:hover + .block__image .part-2 { -webkit-transition-delay: 0.1s !important; transition-delay: 0.1s !important; } .block--split-image-3 .block__content:hover + .block__image .part-3 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-3 .block__content:hover + .block__image .part-4 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-3 .block__image .part { margin-left: -125px; margin-top: -75px; width: 250px; height: 150px; background-image: url(https://unsplash.it/500/300?image=961); } .block--split-image-3 .block__image .part-1 { -webkit-transform: translate(-70%, -73%) rotate3d(1, -1, -1, 3deg); transform: translate(-70%, -73%) rotate3d(1, -1, -1, 3deg); } .block--split-image-3 .block__image .part-2 { -webkit-transform: translate(69%, -75%) rotate3d(1, 1, -1, 3deg); transform: translate(69%, -75%) rotate3d(1, 1, -1, 3deg); } .block--split-image-3 .block__image .part-3 { -webkit-transform: translate(-66%, 72%) rotate3d(-1, -1, -1, 3deg); transform: translate(-66%, 72%) rotate3d(-1, -1, -1, 3deg); } .block--split-image-3 .block__image .part-4 { -webkit-transform: translate(56%, 75%) rotate3d(-1, 1, -1, 3deg); transform: translate(56%, 75%) rotate3d(-1, 1, -1, 3deg); } .block--split-image-4 { margin: 165px auto; } .block--split-image-4 .block__content { background-color: rgba(114, 164, 127, 0.9); } .block--split-image-4 .block__content:hover + .block__image .part { -webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); } .block--split-image-4 .block__content:hover + .block__image .part-1 { -webkit-transition-delay: 0.2s !important; transition-delay: 0.2s !important; } .block--split-image-4 .block__content:hover + .block__image .part-2 { -webkit-transition-delay: 0.15s !important; transition-delay: 0.15s !important; } .block--split-image-4 .block__content:hover + .block__image .part-3 { -webkit-transition-delay: 0.25s !important; transition-delay: 0.25s !important; } .block--split-image-4 .block__content:hover + .block__image .part-4 { -webkit-transition-delay: 0.2s !important; transition-delay: 0.2s !important; } .block--split-image-4 .block__image .part { margin-left: -125px; margin-top: -75px; width: 250px; height: 150px; background-image: url(https://unsplash.it/500/300?image=393); } .block--split-image-4 .block__image .part-1 { -webkit-transform: translate(-68%, -66%) rotate3d(1, -1, -1, 3deg); transform: translate(-68%, -66%) rotate3d(1, -1, -1, 3deg); } .block--split-image-4 .block__image .part-2 { -webkit-transform: translate(64%, -59%) rotate3d(1, 1, -1, 3deg); transform: translate(64%, -59%) rotate3d(1, 1, -1, 3deg); } .block--split-image-4 .block__image .part-3 { -webkit-transform: translate(-68%, 67%) rotate3d(-1, -1, -1, 3deg); transform: translate(-68%, 67%) rotate3d(-1, -1, -1, 3deg); } .block--split-image-4 .block__image .part-4 { -webkit-transform: translate(69%, 71%) rotate3d(-1, 1, -1, 3deg); transform: translate(69%, 71%) rotate3d(-1, 1, -1, 3deg); }
JavaScript
// Let's get our orbit on, man... var orbit = { // Initialize the orbiting init: function(selector) { this.elements = document.querySelectorAll(selector || '[data-orbit]'); // Set the update interval this.setupIntervals(); }, // Setup the intervals for rotating setupIntervals: function() { var self = this; this.elements.forEach(function(el) { self.update(el); this.interval = setInterval(function() { self.update(el); }, 5000); }); }, // Update the orbit rotate3d update: function(el) { var min = -1; var max = 1; // Get our rotate values var rotate = [ (Math.floor(Math.random() * (max - min + 1)) + min) + '.' + (Math.floor(Math.random() * 9) + 1), (Math.floor(Math.random() * (max - min + 1)) + min) + '.' + (Math.floor(Math.random() * 9) + 1) ]; // Set the transform el.style.webkitTransform = 'rotate3d(' + rotate[0] + ', ' + rotate[1] + ', 0, 1deg)'; el.style.MozTransform = 'rotate3d(' + rotate[0] + ', ' + rotate[1] + ', 0, 1deg)'; el.style.msTransform = 'rotate3d(' + rotate[0] + ', ' + rotate[1] + ', 0, 1deg)'; el.style.OTransform = 'rotate3d(' + rotate[0] + ', ' + rotate[1] + ', 0, 1deg)'; el.style.transform = 'rotate3d(' + rotate[0] + ', ' + rotate[1] + ', 0, 1deg)'; } } // Start it up orbit.init();
粒子
时间
文字
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号