add html demo
Former-commit-id: c96e7e73b5577d17be818020b7746c08b6258a3b [formerly c96e7e73b5577d17be818020b7746c08b6258a3b [formerly c96e7e73b5577d17be818020b7746c08b6258a3b [formerly c96e7e73b5577d17be818020b7746c08b6258a3b [formerly b8366a6d8947acf1a7236d2fcbe70fdde5eea560 [formerly e7d024c7319241b098239cecf544f3f506f2b522]]]]] Former-commit-id: 56e1427ccdd3d3b96508b36e900b26949636206b Former-commit-id: 41a84ffb578b100e70a0351c4de9b18255defb07 Former-commit-id: 031c4afbae818b08a3dae04ee9bc2cf7ee68a331 [formerly 8d68981562d608faf36fde7a1fea18d6b2b7570a] Former-commit-id: 5f2d083f639d0b5b33ad0ab389ada692d14ca0a4 Former-commit-id: 4d165efbcac91e0bbcf794271b0562f436277ad8 Former-commit-id: 9e8bf683f1d5cedb7d6969e8006bfd35ab019e8d Former-commit-id: 7ab7d18d389176b555ea53d20798647ea7d4f65f Former-commit-id: 337861057a4ab74d8142525448bcbcf58f7617aa
This commit is contained in:
parent
34bb5b2247
commit
63befd33c6
|
|
@ -0,0 +1,100 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<style>
|
||||
body, html {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
}
|
||||
body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
perspective: 900px;
|
||||
background-color: #FFF;
|
||||
}
|
||||
.cube {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
position: relative;
|
||||
transform-style: preserve-3d;
|
||||
animation: rotate 10s linear infinite;
|
||||
}
|
||||
.cube:after {
|
||||
content: '';
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
|
||||
position: absolute;
|
||||
transform-origin: bottom;
|
||||
transform-style: preserve-3d;
|
||||
transform: rotateX(90deg) translateY(50px) translateZ(-50px);
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.cube div {
|
||||
background-color: rgba(64, 158, 255, 0.7);
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 1px solid rgb(27, 99, 170);
|
||||
box-shadow: 0 0 60px rgba(64, 158, 255, 0.7);
|
||||
}
|
||||
.cube div:nth-child(1) {
|
||||
transform: translateZ(-50px);
|
||||
animation: shade 10s -5s linear infinite;
|
||||
}
|
||||
.cube div:nth-child(2) {
|
||||
transform: translateZ(50px) rotateY(180deg);
|
||||
animation: shade 10s linear infinite;
|
||||
}
|
||||
.cube div:nth-child(3) {
|
||||
transform-origin: right;
|
||||
transform: translateZ(50px) rotateY(270deg);
|
||||
animation: shade 10s -2.5s linear infinite;
|
||||
}
|
||||
.cube div:nth-child(4) {
|
||||
transform-origin: left;
|
||||
transform: translateZ(50px) rotateY(90deg);
|
||||
animation: shade 10s -7.5s linear infinite;
|
||||
}
|
||||
.cube div:nth-child(5) {
|
||||
transform-origin: bottom;
|
||||
transform: translateZ(50px) rotateX(90deg);
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
.cube div:nth-child(6) {
|
||||
transform-origin: top;
|
||||
transform: translateZ(50px) rotateX(270deg);
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
0% {
|
||||
transform: rotateX(-15deg) rotateY(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotateX(-15deg) rotateY(360deg);
|
||||
}
|
||||
}
|
||||
@keyframes shade {
|
||||
50% {
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<title>demo</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cube">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -3,6 +3,7 @@ export default {
|
|||
title: '内嵌网页',
|
||||
icon: 'globe',
|
||||
children: (pre => [
|
||||
{ path: `${pre}d2-doc`, title: 'D2Admin 中文文档', iconSvg: 'd2-admin' }
|
||||
{ path: `${pre}d2-doc`, title: 'D2Admin 中文文档', iconSvg: 'd2-admin' },
|
||||
{ path: `${pre}html`, title: '静态 HTML', icon: 'code' }
|
||||
])('/demo/frame/')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
<d2-container-frame :filename="filename" :src="`${$baseUrl}html/demo.html`"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
filename: __filename
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -9,6 +9,7 @@ export default {
|
|||
redirect: { name: 'demo-frame-index' },
|
||||
component: layoutHeaderAside,
|
||||
children: (pre => [
|
||||
{ path: 'html', name: `${pre}html`, component: () => import('@/pages/demo/frame/html'), meta: { ...meta, title: '静态 HTML' } },
|
||||
{ path: 'd2-doc', name: `${pre}d2-doc`, component: () => import('@/pages/demo/frame/d2-doc'), meta: { ...meta, title: 'D2Admin 中文文档' } }
|
||||
])('demo-frame-')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue