<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>有趣的AI作品01</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #FFCCFF, #CCFFCC, #CCCCFF);
animation: backgroundGradient 10s infinite alternate;
overflow: hidden;
}
@keyframes backgroundGradient {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
perspective: 1000px;
}
.card {
position: relative;
width: 300px;
height: 200px;
margin: 10px;
border-radius: 15px;
overflow: hidden;
transform-style: preserve-3d;
transform: rotateY(0deg);
transition: transform 1s;
cursor: pointer;
}
.card:hover {
transform: rotateY(180deg);
}
.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2em;
color: #fff;
padding: 20px;
box-sizing: border-box;
}
.card-front {
background-color: rgba(0, 0, 0, 0.4);
animation: pulse 2s infinite;
background-blend-mode: multiply;
}
.card-back {
background-color: rgba(255, 255, 255, 0.9);
color: #333;
transform: rotateY(180deg);
}
@keyframes pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.05); opacity: 0.9; }
100% { transform: scale(1); opacity: 1; }
}
.content {
text-align: center;
}
.icon {
font-size: 3em;
margin-bottom: 10px;
}
.icon-1 { color: #FF5733; }
.icon-2 { color: #FFC300; }
.icon-3 { color: #DAF7A6; }
.icon-4 { color: #33FFBD; }
</style>
</head>
<body>
<div class="container">
<div class="card">
<div class="card-front">
<div class="content">
<div class="icon icon-1">⚙️</div>
<div>Process</div>
</div>
</div>
<div class="card-back">
<div class="content">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
</div>
</div>
<div class="card">
<div class="card-front">
<div class="content">
<div class="icon icon-2">⏰</div>
<div>Schedule</div>
</div>
</div>
<div class="card-back">
<div class="content">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
</div>
</div>
<div class="card">
<div class="card-front">
<div class="content">
<div class="icon icon-3">📈</div>
<div>Growth</div>
</div>
</div>
<div class="card-back">
<div class="content">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</div>
</div>
</div>
<div class="card">
<div class="card-front">
<div class="content">
<div class="icon icon-4">💡</div>
<div>Innovation</div>
</div>
</div>
<div class="card-back">
<div class="content">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.</div>
</div>
</div>
</div>
</body>
</html>
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
控制台