|
@@ -4,7 +4,6 @@ const MAX_WIDTH = 1440;
|
|
|
const toRem = (px: number) => {
|
|
|
return `${((4 * px) / (MAX_WIDTH / 10)).toFixed(2)}rem`;
|
|
|
};
|
|
|
-
|
|
|
const keyframes = {
|
|
|
"slow-bounce": {
|
|
|
"0%,100%": {
|
|
@@ -17,6 +16,24 @@ const keyframes = {
|
|
|
animationTimingFunction: "cubic-bezier(0, 0, 0.2, 1)",
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
+ shake: {
|
|
|
+ "10%,90% ": {
|
|
|
+ transform: "translate3d(-1px, 0, 0) rotate(-1deg)",
|
|
|
+ },
|
|
|
+ "20%,80%": {
|
|
|
+ transform: "translate3d(2px, 0, 0) rotate(1deg)",
|
|
|
+ },
|
|
|
+ "30%,70%": {
|
|
|
+ transform: "translate3d(-3px, 0, 0) rotate(-3deg)",
|
|
|
+ },
|
|
|
+ "40%,60%": {
|
|
|
+ transform: "translate3d(3px, 0, 0) rotate(1deg)",
|
|
|
+ },
|
|
|
+ "50%": {
|
|
|
+ transform: "translate3d(-3px, 0, 0) rotate(3deg)",
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
const size: any = Array.from({ length: 100 }).reduce((map: any, _, index) => {
|
|
|
map[index] = toRem(index);
|
|
@@ -51,6 +68,7 @@ const config: Config = {
|
|
|
|
|
|
animation: {
|
|
|
"slow-bounce": "slow-bounce 1s linear infinite",
|
|
|
+ "slow-shake": "shake 0.8s ease-in-out infinite",
|
|
|
},
|
|
|
},
|
|
|
colors: {
|