79 lines
1.4 KiB
HTML
79 lines
1.4 KiB
HTML
<!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">
|
|
<title>相框掉落</title>
|
|
<style>
|
|
body, html,.back {
|
|
height: 100%;
|
|
}
|
|
body, ul, li{
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.back {
|
|
width: 100%;
|
|
background: url("./img/back.jpeg") no-repeat;
|
|
background-size: cover;
|
|
position: relative;
|
|
left: 0;
|
|
animation: backChange 0.1s 2s 6;
|
|
overflow: hidden;
|
|
}
|
|
.main {
|
|
width: 370px;
|
|
height: 226px;
|
|
background: #8d8d8d;
|
|
margin: 0 auto;
|
|
background: url("./img/xk.png");
|
|
background-size: cover;
|
|
position: relative;
|
|
transform-origin: 0 0;
|
|
transform: rotate(0deg);
|
|
top: 10px;
|
|
animation: xkChange 0.8s 2.6s 1 forwards;
|
|
}
|
|
.main img {
|
|
width: 259px;
|
|
height: 122px;
|
|
position: absolute;
|
|
left: 58px;
|
|
top: 53px;
|
|
}
|
|
|
|
|
|
@keyframes backChange {
|
|
from {
|
|
left: 0;
|
|
}
|
|
to {
|
|
left: 10px;
|
|
}
|
|
}
|
|
|
|
@keyframes xkChange {
|
|
0% {
|
|
top: 10px;
|
|
transform: rotate(0deg);
|
|
}
|
|
50% {
|
|
top: 10px;
|
|
transform: rotate(60deg);
|
|
}
|
|
100% {
|
|
transform: rotate(60deg);
|
|
top: 600px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="back">
|
|
<div class="main">
|
|
<img src="./img/me.jpeg" alt="">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |