Update flip-flap gaps to improve preview
This commit is contained in:
65
index.html
65
index.html
@@ -52,13 +52,11 @@ flap-top,
|
|||||||
flap-top-flip {
|
flap-top-flip {
|
||||||
top: 0;
|
top: 0;
|
||||||
border-radius: 0.4vw 0.4vw 0 0;
|
border-radius: 0.4vw 0.4vw 0 0;
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
}
|
||||||
flap-bottom,
|
flap-bottom,
|
||||||
flap-bottom-flip {
|
flap-bottom-flip {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
border-radius: 0 0 0.4vw 0.4vw;
|
border-radius: 0 0 0.4vw 0.4vw;
|
||||||
transform: translateY(2px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
flap-top-flip {
|
flap-top-flip {
|
||||||
@@ -71,16 +69,17 @@ flap-bottom-flip {
|
|||||||
transform-origin: 100% 0%;
|
transform-origin: 100% 0%;
|
||||||
animation: flip-bottom-down 150ms ease-out;
|
animation: flip-bottom-down 150ms ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
flap-top > n,
|
flap-top > n,
|
||||||
flap-top-flip > n {
|
flap-top-flip > n {
|
||||||
top: 2px;
|
top: 0;
|
||||||
}
|
}
|
||||||
flap-bottom > n,
|
flap-bottom > n,
|
||||||
flap-bottom-flip > n {
|
flap-bottom-flip > n {
|
||||||
bottom: 2px;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1200px) {
|
@media screen and (min-width: 800px) {
|
||||||
flap-top,
|
flap-top,
|
||||||
flap-top-flip {
|
flap-top-flip {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
@@ -99,6 +98,25 @@ flap-bottom-flip > n {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1280px) {
|
||||||
|
flap-top,
|
||||||
|
flap-top-flip {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
flap-bottom,
|
||||||
|
flap-bottom-flip {
|
||||||
|
transform: translateY(2px);
|
||||||
|
}
|
||||||
|
flap-top > n,
|
||||||
|
flap-top-flip > n {
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
|
flap-bottom > n,
|
||||||
|
flap-bottom-flip > n {
|
||||||
|
bottom: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Number
|
/* Number
|
||||||
------------------------------------------------*/
|
------------------------------------------------*/
|
||||||
n {
|
n {
|
||||||
@@ -119,10 +137,10 @@ n {
|
|||||||
------------------------------------------------*/
|
------------------------------------------------*/
|
||||||
@keyframes flip-top-down {
|
@keyframes flip-top-down {
|
||||||
0% {
|
0% {
|
||||||
transform: translateY(-2px) rotateX(0);
|
transform: rotateX(0);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
transform: translateY(-2px) rotateX(-90deg);
|
transform: rotateX(-90deg);
|
||||||
color: black;
|
color: black;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
@@ -131,13 +149,14 @@ n {
|
|||||||
0% {
|
0% {
|
||||||
color: white;
|
color: white;
|
||||||
background-color: rgb(30,30,30);
|
background-color: rgb(30,30,30);
|
||||||
transform: translateY(2px) rotateX(90deg);
|
transform: rotateX(90deg);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
transform: translateY(2px) rotateX(0deg);
|
transform: rotateX(0deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 1200px) {
|
|
||||||
|
@media screen and (min-width: 800px) {
|
||||||
@keyframes flip-top-down {
|
@keyframes flip-top-down {
|
||||||
0% {
|
0% {
|
||||||
transform: translateY(-1px) rotateX(0);
|
transform: translateY(-1px) rotateX(0);
|
||||||
@@ -160,6 +179,32 @@ n {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1280px) {
|
||||||
|
@keyframes flip-top-down {
|
||||||
|
0% {
|
||||||
|
transform: translateY(-2px) rotateX(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(-2px) rotateX(-90deg);
|
||||||
|
color: black;
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes flip-bottom-down {
|
||||||
|
0% {
|
||||||
|
color: white;
|
||||||
|
background-color: rgb(30,30,30);
|
||||||
|
transform: translateY(2px) rotateX(90deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(2px) rotateX(0deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user