diff --git a/package-lock.json b/package-lock.json index 7240fc2..cd9c72f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-countup-animate", - "version": "1.0.5", + "version": "1.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-countup-animate", - "version": "1.0.5", + "version": "1.1.2", "license": "MIT", "devDependencies": { "@babel/preset-env": "^7.24.3", diff --git a/src/components/Countup/CountUp.module.css b/src/components/Countup/CountUp.module.css index 296f274..af7fa5f 100644 --- a/src/components/Countup/CountUp.module.css +++ b/src/components/Countup/CountUp.module.css @@ -3,18 +3,3 @@ width: fit-content; } -.mainContainer::before { - content: ""; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 10px; - display: block; - background: linear-gradient( - to top, - rgba(245, 245, 245, 0) 0%, - rgba(245, 245, 245, 1) 100% - ); - z-index: 1; -} diff --git a/src/styles/App.module.css b/src/styles/App.module.css deleted file mode 100644 index 296f274..0000000 --- a/src/styles/App.module.css +++ /dev/null @@ -1,20 +0,0 @@ -.mainContainer { - display: flex; - width: fit-content; -} - -.mainContainer::before { - content: ""; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 10px; - display: block; - background: linear-gradient( - to top, - rgba(245, 245, 245, 0) 0%, - rgba(245, 245, 245, 1) 100% - ); - z-index: 1; -} diff --git a/src/styles/Number.module.css b/src/styles/Number.module.css deleted file mode 100644 index f1126cf..0000000 --- a/src/styles/Number.module.css +++ /dev/null @@ -1,20 +0,0 @@ -@keyframes count-up { - 0% { - transform: translateY(0%); - } - 100% { - transform: translateY(-91.4%); - } -} - -.numberFrame { - display: flex; - flex-direction: column; - line-height: 2; - - animation: count-up 1500ms cubic-bezier(0, 0, 0, 1) forwards; -} - -.numberStyle { - margin: 0; -} diff --git a/src/styles/NumberContainer.module.css b/src/styles/NumberContainer.module.css deleted file mode 100644 index 85ff64f..0000000 --- a/src/styles/NumberContainer.module.css +++ /dev/null @@ -1,16 +0,0 @@ -@keyframes appear { - 0% { - opacity: 0; - } - 100% { - opacity: 1; - } -} - -.numberContainerFrame { - overflow: hidden; - width: fit-content; - aspect-ratio: 1 / 2.7; - opacity: 0; - animation: appear 0.3s ease-in forwards; -} diff --git a/src/styles/NumberLoading.module.css b/src/styles/NumberLoading.module.css deleted file mode 100644 index 4b3de6d..0000000 --- a/src/styles/NumberLoading.module.css +++ /dev/null @@ -1,20 +0,0 @@ -@keyframes count-up { - 0% { - transform: translateY(0%); - } - 100% { - transform: translateY(-100%); - } -} - -.numberLoadingFrame { - display: flex; - flex-direction: column; - line-height: 2; - - animation: count-up 700ms cubic-bezier(1, -0.05, 0.97, 0.63) infinite; -} - -.numberStyle { - margin: 0; -}