css实现苹果相册logo动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现苹果相册logo动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html,
body {
width: 100%;
height: 100%;
box-sizing: border-box;
margin: 0;
padding: 0;
}
.container {
width: 400px;
height: 400px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.container .petal {
height: 90px;
width: 50px;
position: absolute;
border-radius: 50px;
transform-origin: 50% 105%;
mix-blend-mode: multiply;
top: 26%;
}
.container .back {
width: 250px;
height: 250px;
border-radius: 40px;
box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.2);
opacity: 0;
animation: fade-in 1s ease 1.3s forwards;
}
.p-1 {
transform: rotate(0deg);
background: #ffac21;
animation: anim-1 1s ease-in-out;
}
@keyframes anim-1 {
from {
opacity: 0;
transform: rotate(0deg) scale(0.5);
}
to {
opacity: 1;
transform: rotate(0deg);
}
}
.p-2 {
transform: rotate(45deg);
background: #ebe534;
animation: anim-2 1s ease-in-out;
}
@keyframe.........完整代码请登录后点击上方下载按钮下载查看
网友评论0