body {
margin:0;
padding:0;
}
.main {
background: black;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
}
.phone{
background-color: #f0f0f0;
border-radius: 2em;
width: 18em;
height: 35em;
display:flex;
justify-content: center;
flex-direction: column;
}
.top {
background-color: #f0f0f0;
border-radius: 1.7em;
width: 18em;
height: 2em;
display: flex;
justify-content: center;
align-items: center;
gap: 0.2rem;
}
.top-1 {
background-color: #f0f0f0;
border-radius: 1.7em;
width: 1.5em;
height: 1em;
display: flex;
justify-content: flex-end;
align-items: center;
align-self: center;
}
.top1{
background: rgb(7,32,117);
background: radial-gradient(circle, rgba(7,32,117,1) 6%, rgba(0,0,0,1) 51%);
border-radius: 0.5em;
width: 1em;
height: 1em;
}
.top2{
background-color:black;
border-radius: 0.5em;
width: 0.5em;
height: 0.5em;
}
.top3{
background-color: black;
border-radius: 0.5em;
width: 3.5em;
height: 0.4em;
}
.display{
background-color: black;
border-radius: 0.5em;
width: 17em;
height: 27em;
display:flex;
align-self: center;
justify-content: center;
align-items: center;
}
.display2 {
background-color: black;
border-radius: 0.3em;
width: 16.5em;
height: 26.5em;
display: flex;
justify-content: center;
align-items: center;
animation: mymove 1s;
animation-delay: 2s;
animation-fill-mode: forwards;
}
@keyframes mymove {
from {background-color: black;}
to {background-color: white;}
}
.bottom{
border-radius: 1.7em;
background-color: #f0f0f0;
width: 18em;
height: 4em;
display:flex;
justify-content: center;
align-items: center;
}
.box {
border-radius: 2em;
width: 3em;
height: 3em;
background: #f0f0f0;
box-shadow: 5px 5px 5px #cccccc,
5px 5px 5px #ffffff,
0 0 0 #cccccc inset,
0 0 0 #ffffff inset;
/* animation-fill-mode: forwards; */
align-self: center;
animation: anime 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.5s;
animation-delay: 1s;
}
@keyframes anime {
0% {
width: 3em;
height: 3em;
background: #f8f8f8;
box-shadow: 5px 5px 5px #cccccc,
5px 5px 5px #ffffff,
0 0 0 #cccccc inset,
0 0 0 #ffffff inset;
}
100% {
width: 3em;
height: 3em;
background: #f0f0f0;
box-shadow: 0 0 0 #cccccc,
0 0 0 #ffffff,
10px 10px 10px #cccccc inset,
-10px -10px 10px #ffffff inset;
}
}
/* 50% {
width: 60px;
height: 240px;
background: #f8f8f8;
box-shadow: 10px 10px 10px #cccccc,
10px 10px 10px #ffffff,
0 0 0 #cccccc inset,
0 0 0 #ffffff inset;
}
100% {
width: 240px;
height: 60px;
background: #fafafa;
box-shadow: 40px 40px 40px #cccccc,
0 0 0 #ffffff,
0 0 0 #cccccc inset,
2px 2px 2px #ffffff inset;
}
index.css