3 Dステージ実装
11426 ワード
DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
#wrap{
width: 400px;
height: 400px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -200px;
margin-top: -200px;
border: 1px solid black;
transform-style: preserve-3d;
perspective-origin: ;
}
#inner{
width: 200px;
height: 200px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -100px;
margin-top: -100px;
border: 1px solid pink;
border-radius: 50%;
text-align: center;
line-height: 200px;
font-weight: bold;
transition: 2s;
transform: rotateX(120deg) translateZ(100px);
}
style>
head>
<body>
<div id="wrap">
<div id="inner">
Rainbow
div>
div>
body>
html>