css实现logo放大开场动画过渡效果代码
代码语言:html
所属分类:动画
代码描述:css实现logo放大开场动画过渡效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
#container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
background-color: #000000;
overflow: hidden;
}
#container netflixintro {
display: block;
position: relative;
width: 300px;
height: 300px;
overflow: hidden;
animation-name: zoom-in;
animation-delay: 0.5s;
animation-duration: 3.5s;
animation-timing-function: ease-in;
animation-fill-mode: forwards;
background-size: 4000px;
background-position: -1950px 0;
}
#container netflixintro::before {
content: "";
position: absolute;
display: block;
background-color: #000000;
width: 150%;
height: 30%;
left: -25%;
bottom: -27%;
border-radius: 50%;
z-index: 5;
transform-origin: left center;
background-size: 4000px;
background-position: -1950px 0;
}
#container netflixintro[letter="N"] {
transform-origin: 30% center;
}
#container netflixintro[letter="N"] .helper-1 {
width: 19.5%;
height: 100%;
background-color: rgba(228, 9, 19, 0.5);
left: 22.4%;
top: 0;
transform: rotate(180deg);
animation-name: fading-lumieres-box;
animation-duration: 2s;
animation-delay: 0.6s;
animation-fill-mode: forwards;
}
#container netflixintro[letter="N"] .helper-1 .effect-brush {
animation-name: brush-moving;
animation-duration: 2.5s;
animation-fill-mode: forwards;
animation-delay: 1.2s;
}
#container netflixintro[letter="N"] .helper-1 .effect-brush [class*="fur-"] {
bottom: 0;
height: 40%;
}
#container netflixintro[letter="N"] .helper-3 {
width: 19%;
height: 150%;
left: 40.5%;
top: -25%;
transform: rotate(-19.5deg);
box-shadow: 0px 0px 35px -12px rgba(0, 0, 0, 0.4);
overflow: hidden;
}
#container netflixintro[letter="N"] .helper-3 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.8s;
}
#container netflixintro[letter="N"] .helper-2 {
width: 19.5%;
height: 100%;
left: 57.8%;
top: 0;
transform: rotate(180deg);
overflow: hidden;
}
#container netflixintro[letter="N"] .helper-2 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.5s;
}
#container netflixintro[letter="E"] {
transform-origin: 30% center;
}
#container netflixintro[letter="E"] .helper-1 {
width: 19.5%;
height: 100%;
background-color: rgba(228, 9, 19, 0.5);
left: 22%;
top: 0;
transform: rotate(180deg);
animation-name: fading-lumieres-box;
animation-duration: 2s;
animation-delay: 0.6s;
animation-fill-mode: forwards;
}
#container netflixintro[letter="E"] .helper-1 .effect-brush {
animation-name: brush-moving;
animation-duration: 2.5s;
animation-fill-mode: forwards;
animation-delay: 1.2s;
}
#container netflixintro[letter="E"] .helper-1 .effect-brush [class*="fur-"] {
bottom: 0;
height: 40%;
}
#container netflixintro[letter="E"] .helper-2 {
width: 17.5%;
height: 50%;
left: 38%;
top: -49px;
transform: rotate(270deg);
overflow: hidden;
}
#container netflixintro[letter="E"] .helper-2 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.8s;
}
#container netflixintro[letter="E"] .helper-3 {
width: 17%;
height: 39%;
left: 33%;
top: 29%;
transform: rotate(-90deg);
box-shadow: 0px 0px 35px -12px rgba(0, 0, 0, 0.4);
overflow: hidden;
animation-name: fading-out;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 1s;
}
#container netflixintro[letter="E"] .helper-3 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.6s;
}
#container netflixintro[letter="E"] .helper-4 {
width: 17.5%;
height: 50%;
left: 38%;
top: 196px;
transform: rotate(270deg);
overflow: hidden;
}
#container netflixintro[letter="E"] .helper-4 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.4s;
animation-delay: 0.5s;
}
#container netflixintro[letter="T"] {
transform-origin: center center;
}
#container netflixintro[letter="T"] .helper-1 {
width: 19.5%;
height: 100%;
background-color: rgba(228, 9, 19, 0.5);
left: 38%;
top: 0;
transform: rotate(180deg);
animation-name: fading-lumieres-box;
animation-duration: 2s;
animation-delay: 0.6s;
animation-fill-mode: forwards;
}
#container netflixintro[letter="T"] .helper-1 .effect-brush {
animation-name: brush-moving;
animation-duration: 2.5s;
animation-fill-mode: forwards;
animation-delay: 1s;
}
#container netflixintro[letter="T"] .helper-1 .effect-brush [class*="fur-"] {
bottom: 0;
height: 40%;
}
#container netflixintro[letter="T"] .helper-2 {
width: 17.5%;
height: 54%;
left: 39%;
top: -55px;
transform: rotate(270deg);
overflow: hidden;
}
#container netflixintro[letter="T"] .helper-2 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.5s;
}
#container netflixintro[letter="F"] {
transform-origin: 30% center;
}
#container netflixintro[letter="F"] .helper-1 {
width: 19.5%;
height: 100%;
background-color: rgba(228, 9, 19, 0.5);
left: 22%;
top: 0;
transform: rotate(180deg);
animation-name: fading-lumieres-box;
animation-duration: 2s;
animation-delay: 0.6s;
animation-fill-mode: forwards;
}
#container netflixintro[letter="F"] .helper-1 .effect-brush {
animation-name: brush-moving;
animation-duration: 2.5s;
animation-fill-mode: forwards;
animation-delay: 1.2s;
}
#container netflixintro[letter="F"] .helper-1 .effect-brush [class*="fur-"] {
bottom: 0;
height: 40%;
}
#container netflixintro[letter="F"] .helper-2 {
width: 17.5%;
height: 50%;
left: 38%;
top: -49px;
transform: rotate(270deg);
overflow: hidden;
}
#container netflixintro[letter="F"] .helper-2 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.7s;
}
#container netflixintro[letter="F"] .helper-3 {
width: 17%;
height: 39%;
left: 33%;
top: 29%;
transform: rotate(-90deg);
box-shadow: 0px 0px 35px -12px rgba(0, 0, 0, 0.4);
overflow: hidden;
animation-name: fading-out;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 1s;
}
#container netflixintro[letter="F"] .helper-3 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.5s;
}
#container netflixintro[letter="L"] {
transform-origin: 30% center;
}
#container netflixintro[letter="L"] .helper-1 {
width: 19.5%;
height: 100%;
background-color: rgba(228, 9, 19, 0.5);
left: 22%;
top: 0;
transform: rotate(180deg);
animation-name: fading-lumieres-box;
animation-duration: 2s;
animation-delay: 0.6s;
animation-fill-mode: forwards;
}
#container netflixintro[letter="L"] .helper-1 .effect-brush {
animation-name: brush-moving;
animation-duration: 2.5s;
animation-fill-mode: forwards;
animation-delay: 0.8s;
}
#container netflixintro[letter="L"] .helper-1 .effect-brush [class*="fur-"] {
bottom: 0;
height: 40%;
}
#container netflixintro[letter="L"] .helper-2 {
width: 17.5%;
height: 50%;
left: 38%;
top: 196px;
transform: rotate(270deg);
overflow: hidden;
}
#container netflixintro[letter="L"] .helper-2 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.4s;
}
#container netflixintro[letter="I"] {
transform-origin: center center;
}
#container netflixintro[letter="I"] .helper-1 {
width: 19.5%;
height: 100%;
background-color: rgba(228, 9, 19, 0.5);
left: 38%;
top: 0;
transform: rotate(180deg);
animation-name: fading-lumieres-box;
animation-duration: 2s;
animation-delay: 0.6s;
animation-fill-mode: forwards;
}
#container netflixintro[letter="I"] .helper-1 .effect-brush {
animation-name: brush-moving;
animation-duration: 2.5s;
animation-fill-mode: forwards;
animation-delay: 1s;
}
#container netflixintro[letter="I"] .helper-1 .effect-brush [class*="fur-"] {
bottom: 0;
height: 40%;
}
#container netflixintro[letter="X"] {
transform-origin: center center;
}
#container netflixintro[letter="X"] .helper-1 {
width: 19%;
height: 150%;
left: 40.5%;
top: -25%;
transform: rotate(-19.5deg);
animation-name: fading-lumieres-box;
animation-duration: 2s;
animation-delay: 0.6s;
animation-fill-mode: forwards;
}
#container netflixintro[letter="X"] .helper-1 .effect-brush {
animation-name: brush-moving;
animation-duration: 2.5s;
animation-fill-mode: forwards;
animation-delay: 1.2s;
}
#container netflixintro[letter="X"] .helper-1 .effect-brush [class*="fur-"] {
bottom: 0;
height: 40%;
}
#container netflixintro[letter="X"] .helper-2 {
width: 19%;
height: 150%;
left: 40.5%;
top: -25%;
transform: rotate(19.5deg);
overflow: hidden;
}
#container netflixintro[letter="X"] .helper-2 .effect-brush {
animation-name: brush-moving;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-delay: 0.5s;
}
#container netflixintro [class*="helper-"] {
position: absolute;
}
#container netflixintro [class*="helper-"] .effect-brush {
position: absolute;
width: 100%;
height: 300%;
top: 0;
overflow: hidden;
}
#container netflixintro [class*="helper-"] .effect-brush::before {
display: block;
content: "";
position: absolute;
background-color: #e40913;
width: 100%;
height: 70%;
box-shadow: 0px 0px 29px 24px #e40913;
}
#container netflixintro [class*="helper-"] .effect-brush [class*="fur-"] {
display: block;
position: absolute;
bottom: 10%;
height: 30%;
}
#container netflixintro [class*="helper-"] .effect-brush .fur-1 {
left: 0%;
width: 3.8%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 15%, rgba(0, 0, 0, 0) 81%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-2 {
left: 3.8%;
width: 2.8%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 10%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-3 {
left: 6.6%;
width: 4.8%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 37%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-4 {
left: 11.4%;
width: 4%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 23%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-5 {
left: 15.4%;
width: 4%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 15%, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-6 {
left: 19.4%;
width: 2.5%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 27%, rgba(0, 0, 0, 0) 89%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-7 {
left: 21.9%;
width: 4%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 20%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-8 {
left: 25.9%;
width: 2%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 30%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-9 {
left: 27.9%;
width: 4%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 35%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-10 {
left: 31.9%;
width: 3.5%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 39%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-11 {
left: 35.4%;
width: 2%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 34%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-12 {
left: 37.4%;
width: 2.6%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 22%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-13 {
left: 40%;
width: 6%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 47%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-14 {
left: 46%;
width: 2%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 36%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-brush .fur-15 {
left: 48%;
width: 5.5%;
background: linear-gradient(to bottom, #e40913 0%, #e40913 29%, rgba(0, 0, 0, 0) 100%);
}
#container netflixintro [class*="helper-"] .effect-bru.........完整代码请登录后点击上方下载按钮下载查看
网友评论0