<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
:root {
--cube-size: 50vmin;
--side-size: calc(var(--cube-size) / 2);
--perspective: calc(var(--cube-size) * 4);
}
html,
body {
height: 100%;
}
body {
display: grid;
place-items: center;
overflow: hidden;
}
.container {
position: relative;
-webkit-perspective: var(--perspective);
perspective: var(--perspective);
}
.cube {
position: relative;
width: var(--cube-size);
height: var(--cube-size);
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-animation: cube-rotation 8s linear infinite;
animation: cube-rotation 8s linear infinite;
}
.side {
position: absolute;
display: grid;
grid-template-columns: repeat(7, 1fr);
grid-gap: 2px;
width: var(--cube-size);
height: var(--cube-size);
-webkit-perspective: var(--perspective);
perspective: var(--perspective);
overflow: hidden;
}
.front {
-webkit-transform: rotateY(0deg) translateZ(var(--side-size));
transform: rotateY(0deg) translateZ(var(--side-size));
}
.back {
-webkit-transform: rotateY(180deg) translateZ(var(--side-size));
transform: rotateY(180deg) translateZ(var(--side-size));
}
.right {
-webkit-transform: rotateY(90deg) translateZ(var(--side-size));
transform: rotateY(90deg) translateZ(var(--side-size));
}
.left {
-webkit-transform: rotateY(-90deg) translateZ(var(--side-size));
transform: rotateY(-90deg) translateZ(var(--side-size));
}
.top {
-webkit-transform: rotateX(90deg) translateZ(var(--side-size));
transform: rotateX(90deg) translateZ(var(--side-size));
}
.bottom {
-webkit-transform: rotateX(-90deg) translateZ(var(--side-size));
transform: rotateX(-90deg) translateZ(var(--side-size));
}
.front .tile {
background: rgba(255, 51, 51, 0.9);
}
.back .tile {
background: rgba(255, 221, 51, 0.9);
}
.right .tile {
background: rgba(119, 255, 51, 0.9);
}
.left .tile {
background: rgba(51, 255, 153, 0.9);
}
.top .tile {
background: rgba(51, 187, 255, 0.9);
}
.bottom .tile {
background: rgba(85, 51, 255, 0.9);
}
@-webkit-keyframes cube-rotation {
to {
-webkit-transform: rotateX(360deg) rotateY(-360deg);
transform: rotateX(360deg) rotateY(-360deg);
}
}
@keyframes cube-rotation {
to {
-webkit-transform: rotateX(360deg) rotateY(-360deg);
transform: rotateX(360deg) rotateY(-360deg);
}
}
</style>
<script>
window.console = window.console || function (t) { };
</script>
<script>
if (document.location.search.match(/type=embed/gi)) {
window.parent.postMessage("resize", "*");
}
</script>
</head>
<body translate="no">
<div class="container">
<div class="cube">
<div class="side side-0 front">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
<div class="side side-1 back">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
<div class="side side-2 right">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
<div class="side side-3 left">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
<div class="side side-4 top">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
<div class="side side-5 bottom">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
</div>
</div>
<script src='js/cdnjs.cloudflare.min.js'></script>
<script src='js/index.js'></script>
</body>
</html>
html--魔方
转载请注明出处或者链接地址:https://www.qianduange.cn//article/7601.html
相关文章
-
localStorage.setItem()、localStorage.getItem()、JSON.stringify()、 JSON.parse();的使用
-
(全网最详细) FastJson解析器JsonPath的使用
-
JSON parse error: Cannot deserialize value of type `java.util.ArrayList<java.lang.Long>` from Object
-
【JavaScript】 发送 POST 请求并带有 JSON 请求体的几种方法
-
npm报错:request to https://registry.npm.taobao.org failed, reason certificate has expired
-
npm ERR! code CERT_HAS_EXPIREDnpm ERR! errno CERT_HAS_EXPIRED
-
查看、设置npm的prefix:npm全局安装的包的存放路径
-
npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve 报错,版本冲突,最全解决步骤(#^.^#)
-
npm ERR! code ERR_INVALID_URL报错解决
-
npm设置镜像 淘宝最新镜像源
发布的文章
localStorage.setItem()、localStorage.getItem()、JSON.stringify()、 JSON.parse();的使用
2024-05-12 17:05:02
vue elementUI XLSX.utils.sheet_to_json实现复杂表头的导入功能
2024-05-12 17:05:00
HuTool工具使用(JSONUtil JSONObject JSONArray)
2024-05-12 17:05:59
(全网最详细) FastJson解析器JsonPath的使用
2024-05-12 17:05:58
java循环遍历无规则json的三种方式:gson、fastjson、orgjson
2024-05-12 17:05:58
jackson、gson、fastjson和json-lib四种主流json解析框架对比
2024-05-12 17:05:58
关于fastjson版本报错write javaBean error, fastjson version 1.2.62, fieldName : 8
2024-05-12 17:05:57
JSON parse error: Cannot deserialize value of type `java.util.ArrayList<java.lang.Long>` from Object
2024-05-12 17:05:57
【JavaScript】 发送 POST 请求并带有 JSON 请求体的几种方法
2024-05-12 17:05:57
Unity读取Json的几种方法
2024-05-12 17:05:57
大家推荐的文章