css⼊场动画_CSS3从中间溅开来的页⾯⼊场动画CSS
语⾔:
CSSSCSS
确定
body {
background-color: #191919;
font-family: 'Open Sans', sans-rif;
}
.text {
opacity: 0;
position: absolute;
z-index: 7;
text-align: center;
margin: -50px 0 0 -150px;
企业趣味运动会width: 300px;
height: 100px;
top: 50%;
left: 50%;
font-size: 48px;
font-weight: 700;
}
.text p {
white-space: nowrap;
overflow: hidden;
}
.splash {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
overflow: hidden;
}
.splash_logo {2010年是什么虎
position: absolute;
margin: -15px 0 0 -25px; top: 50vh;
亚健康调理
z-index: 5;
left: 50vw;
width: 50px;
text-align: center;
height: 30px;
font-size: 26px;
font-weight: 600;
color: #ffffff;
opacity: 1;
will-change: opacity;
}
.splash_logo:before { display: block;
position: absolute;
left: 15px;
bottom: -5px;
width: 20px;
height: 1px;
background-color: #757474; content: "";
}
.splash_logo:after {
display: block;
白蛇根草position: absolute;
left: 15px;
top: -5px;
width: 20px;
background-color: #757474;
content: "";
will-change: width;可歌可泣什么意思
}
.splash_svg {
position: relative;
margin: auto;
top: 0;
left: 0;
width: 100%;
height: 100%;
bottom: 0;
right: 0;
}
.
splash_svg svg {
width: 100%;
height: 100%;
-webkit-backface-visibility: visible;
backface-visibility: visible;
}
.splash_svg svg rect {
width: 100%;
height: 100%;洋牡丹
fill: #f5d300;
stroke: 0;
-
webkit-clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh); clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh);
-webkit-animation: expand .7s ea-in forwards 2.7s;
-moz-animation: expand .7s ea-in forwards 2.7s;
-o-animation: expand .7s ea-in forwards 2.7s;
animation: expand .7s ea-in forwards 2.7s;
}
.splash_minimize {
position: absolute;
margin: auto;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 4;
}
.splash_minimize svg {
width: 100%;
height: 100%;
-webkit-backface-visibility: visible;
backface-visibility: visible;
}
.splash_minimize svg rect {
width: 100%;
height: 100%;
-webkit-clip-path: polygon(0vw 0vh, 100vw 0vh, 100vw 100vh, 0vw 100vh);
clip-path: polygon(0vw 0vh, 100vw 0vh, 100vw 100vh, 0vw 100vh);
-webkit-animation: scale .2s ea-out forwards 1s, hide 1.3s ea-out forwards 1.2s; -moz-animation: scale .2s ea-out forwards 1s, hide 1.3s ea-out forwards 1.2s; -o-animation: scale .2s ea-out forwards 1s, hide 1.3s ea-out forwards 1.2s; animation: scale .2s ea-out forwards 1s, hide 1.3s ea-out forwards 1.2s;
}
@-webkit-keyframes scale {令人讨厌的英语
100% {
-webkit-clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh);
clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh);
}
}
@-moz-keyframes scale {
100% {
-webkit-clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh);
clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh);
}
}
@-o-keyframes scale {
100% {
-
webkit-clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh); clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh);
}
}
@keyframes scale {
100% {
-webkit-clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh); clip-path: polygon(45vw 40vh, 55vw 40vh, 55vw 60vh, 45vw 60vh);
}
}
@-webkit-keyframes hide {
100% {
fill: transparent;
}
}
@-moz-keyframes hide {
100% {
fill: transparent;徐右冰
}
}
@-o-keyframes hide {
100% {
fill: transparent;
}
}
@keyframes hide {
100% {
fill: transparent;
}
}