- {{item.avatarName}} 祝:
+ {{item.avatarName}} 祝:
{{item.text}}
diff --git a/src/style.scss b/src/style.scss
index e1dbe90533ac62f2d9feeb68a5b68c7a7244294a..79472226a0741add9f63a28acbcc2d302082ec16 100644
--- a/src/style.scss
+++ b/src/style.scss
@@ -1,5 +1,7 @@
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
-
+:root {
+ font-size: calc(16px + (24 - 16) * (100vw - 320px) / (1280 - 320));
+}
/* cyrillic-ext */
@font-face {
font-family: 'Pacifico';
@@ -223,7 +225,7 @@ button:focus-visible {
box-sizing: border-box;
position: absolute;
width: auto;
- max-width: 70vw;
+ max-width: 85vw;
min-height: 20px;
text-align: left;
margin-top: 2px;
@@ -346,35 +348,104 @@ button:focus-visible {
// left: 50%;
// top: 22vh;
bottom: -100px;
- width: 100px;
+ width: 96px;
height: auto;
animation-duration: 2s;
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
+ // .shuamozhihua-title {
+ // position: absolute;
+ // width: auto;
+ // height: auto;
+ // top: 50%;
+ // left: 50%;
+ // transform: translate(-50%, -50%);
+ // opacity: 0;
+ // // left: calc(50% - 160px);
+ // // top: 14vh;
+ // font-family: 'Sanjixinkai', 'Pacifico', 'cursive';
+ // font-size: 32px;
+ // background-color: rgba(255, 182, 193, 0.6);
+ // backdrop-filter: blur(6px);
+ // border: 3px solid transparent;
+ // padding: 10px 20px;
+ // border-radius: 50px;
+ // animation: rotate 5s linear infinite;
+ // backface-visibility: hidden;
+ // color: #e74210;
+ // text-shadow: 0 0 30px rgba(243, 221, 27, 0.836);
+ // }
.shuamozhihua-title {
- position: absolute;
- width: auto;
- height: auto;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- opacity: 0;
- animation: fadeIn 1s 3s forwards;
- // left: calc(50% - 160px);
- // top: 14vh;
+ margin-top: 10vh;
font-family: 'Sanjixinkai', 'Pacifico', 'cursive';
- font-size: 32px;
- background-color: rgba(255, 182, 193, 0.6);
- backdrop-filter: blur(6px);
- border: 3px solid transparent;
- padding: 10px 20px;
- border-radius: 50px;
- animation: rotate 5s linear infinite;
- backface-visibility: hidden;
+
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ line-height: 1.5;
+ perspective: 40em;
color: #e74210;
text-shadow: 0 0 30px rgba(243, 221, 27, 0.836);
+ .shuamozhihua-title-container {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ margin: auto;
+ width: 100vw;
+ height: 30vh;
+ animation: tiltSpin 15s linear infinite;
+ transform-style: preserve-3d;
+ .shuamozhihua-title-ring {
+ position: relative;
+ height: 30vh;
+ width: 100vw;
+ font-size: 2em;
+ transform-style: preserve-3d;
+ animation-name: spin;
+ animation-duration: 10s;
+ animation-timing-function: inherit;
+ animation-iteration-count: inherit;
+ }
+ .shuamozhihua-title-ring:nth-child(even) {
+ animation-direction: reverse;
+ }
+
+ .shuamozhihua-title-item {
+ position: absolute;
+ top: 0;
+ left: 0;
+ display: inline-block;
+ width: 100%;
+ height: 100%;
+ // backdrop-filter: blur(2px);
+ font-weight: 600;
+ text-align: center;
+ transform: rotateY(calc(var(--i) * calc(360 / var(--n)) * 1deg)) translateZ(7rem);
+ }
+ }
+
+ @keyframes tiltSpin {
+ from {
+ transform: rotateY(0) rotateX(30deg);
+ }
+
+ to {
+ transform: rotateY(1turn) rotateX(30deg);
+ }
+ }
+
+ @keyframes spin {
+ from {
+ transform: rotateY(0);
+ }
+
+ to {
+ transform: rotateY(1turn);
+ }
+ }
}
.shuamozhihua-img1 {
@@ -421,7 +492,7 @@ button:focus-visible {
40% {
bottom: 40%;
- left: 55%;
+ left: 65%;
transform: rotate(-30deg);
filter: blur(2px);
}
@@ -434,7 +505,7 @@ button:focus-visible {
}
80% {
- bottom: 80%;
+ bottom: 70%;
left: 45%;
transform: rotate(-15deg);
filter: blur(1px);
@@ -449,7 +520,7 @@ button:focus-visible {
100% {
bottom: 50%;
- left: calc(50% - 120px);
+ left: calc(50% - 100px);
transform: rotate(-15deg);
}
}
@@ -473,7 +544,7 @@ button:focus-visible {
40% {
bottom: 40%;
- right: 55%;
+ right: 65%;
transform: rotate(30deg);
filter: blur(2px);
}
@@ -486,7 +557,7 @@ button:focus-visible {
}
80% {
- bottom: 80%;
+ bottom: 70%;
right: 45%;
transform: rotate(15deg);
filter: blur(1px);
@@ -501,7 +572,7 @@ button:focus-visible {
100% {
bottom: 50%;
- right: calc(50% - 80px);
+ right: calc(50% - 100px);
transform: rotate(15deg);
}
}