Skip to content

Commit

Permalink
feat: add framer-motion for animations in OlasBalanceSection
Browse files Browse the repository at this point in the history
  • Loading branch information
mohandast52 committed Dec 12, 2024
1 parent 3aa08fa commit 9f61187
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/components/MainPage/sections/OlasBalanceSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Button, Flex, Skeleton, Typography } from 'antd';
import { sum } from 'lodash';
import { motion } from 'motion/react';
import { useMemo } from 'react';
import styled from 'styled-components';

Expand Down Expand Up @@ -87,6 +88,8 @@ export const MainOlasBalance = ({
borderbottom="true"
padding="16px 24px"
>
<motion.ul animate={{ x: 100 }} />

{isBalanceLoaded ? (
<Flex vertical gap={8}>
<Flex align="center" justify="space-between">
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"graphql-request": "^6.1.0",
"lodash": "^4.17.21",
"lottie-react": "^2.4.0",
"motion": "^11.14.0",
"next": "^14.2.3",
"react": "^18.3.1",
"react-canvas-confetti": "1.2.1",
Expand Down
27 changes: 27 additions & 0 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3261,6 +3261,15 @@ form-data@^4.0.0:
combined-stream "^1.0.8"
mime-types "^2.1.12"

framer-motion@^11.14.0:
version "11.14.0"
resolved "https://registry.npmjs.org/framer-motion/-/framer-motion-11.14.0.tgz#806a710ec0ad5b6ad4bbcf2f88fb4a2d9c559b08"
integrity sha512-/cPWeZ4GXAJwNj3Z2cp+WtbVDlXyhBWmoIlorgn6FieOcEmoritPGvg+dqO6GaUlXHYgW6YLpsAPzdFfQqWQ5Q==
dependencies:
motion-dom "^11.14.0"
motion-utils "^11.13.0"
tslib "^2.4.0"

fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
Expand Down Expand Up @@ -4589,6 +4598,24 @@ minimist@^1.2.0, minimist@^1.2.6:
resolved "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz"
integrity sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==

motion-dom@^11.14.0:
version "11.14.0"
resolved "https://registry.npmjs.org/motion-dom/-/motion-dom-11.14.0.tgz#5be815b374b9842b09218894d7d83a4a5935d688"
integrity sha512-K7utJZxeMfUJNp/7VNtyasmj4AsqmX6dxT01ox2M9kndcww9soP4gFpf4n0wz7m249+c2ZRfWPnWdInzaxv03w==

motion-utils@^11.13.0:
version "11.13.0"
resolved "https://registry.npmjs.org/motion-utils/-/motion-utils-11.13.0.tgz#e65fab5e26a1da3b18b4b4d1f3d0067977ccfd4a"
integrity sha512-lq6TzXkH5c/ysJQBxgLXgM01qwBH1b4goTPh57VvZWJbVJZF/0SB31UWEn4EIqbVPf3au88n2rvK17SpDTja1A==

motion@^11.14.0:
version "11.14.0"
resolved "https://registry.npmjs.org/motion/-/motion-11.14.0.tgz#af35fbf8346d409d79d42a615b4f4ffbd119bb60"
integrity sha512-PZvilcpIFZHxRl7f8HEELAD0sNqEq50IrMaIJPm1prr+yq6VadS4sylJvopVIxXqfesdv+m9MV072dZUeLeZ+w==
dependencies:
framer-motion "^11.14.0"
tslib "^2.4.0"

[email protected]:
version "2.1.2"
resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"graphql-request": "^6.1.0",
"lodash": "^4.17.21",
"lottie-react": "^2.4.0",
"motion": "^11.14.0",
"next": "^14.2.3",
"ps-tree": "^1.2.0",
"react": "^18.3.1",
Expand Down
27 changes: 27 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3105,6 +3105,15 @@ fp-ts@^1.0.0:
resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.19.5.tgz#3da865e585dfa1fdfd51785417357ac50afc520a"
integrity sha512-wDNqTimnzs8QqpldiId9OavWK2NptormjXnRJTQecNjzwfyp6P/8s/zG8e4h3ja3oqkKaY72UlTjQYt/1yXf9A==

framer-motion@^11.14.0:
version "11.14.0"
resolved "https://registry.npmjs.org/framer-motion/-/framer-motion-11.14.0.tgz#806a710ec0ad5b6ad4bbcf2f88fb4a2d9c559b08"
integrity sha512-/cPWeZ4GXAJwNj3Z2cp+WtbVDlXyhBWmoIlorgn6FieOcEmoritPGvg+dqO6GaUlXHYgW6YLpsAPzdFfQqWQ5Q==
dependencies:
motion-dom "^11.14.0"
motion-utils "^11.13.0"
tslib "^2.4.0"

from@~0:
version "0.1.7"
resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe"
Expand Down Expand Up @@ -4319,6 +4328,24 @@ module-error@^1.0.1, module-error@^1.0.2:
resolved "https://registry.yarnpkg.com/module-error/-/module-error-1.0.2.tgz#8d1a48897ca883f47a45816d4fb3e3c6ba404d86"
integrity sha512-0yuvsqSCv8LbaOKhnsQ/T5JhyFlCYLPXK3U2sgV10zoKQwzs/MyfuQUOZQ1V/6OCOJsK/TRgNVrPuPDqtdMFtA==

motion-dom@^11.14.0:
version "11.14.0"
resolved "https://registry.npmjs.org/motion-dom/-/motion-dom-11.14.0.tgz#5be815b374b9842b09218894d7d83a4a5935d688"
integrity sha512-K7utJZxeMfUJNp/7VNtyasmj4AsqmX6dxT01ox2M9kndcww9soP4gFpf4n0wz7m249+c2ZRfWPnWdInzaxv03w==

motion-utils@^11.13.0:
version "11.13.0"
resolved "https://registry.npmjs.org/motion-utils/-/motion-utils-11.13.0.tgz#e65fab5e26a1da3b18b4b4d1f3d0067977ccfd4a"
integrity sha512-lq6TzXkH5c/ysJQBxgLXgM01qwBH1b4goTPh57VvZWJbVJZF/0SB31UWEn4EIqbVPf3au88n2rvK17SpDTja1A==

motion@^11.14.0:
version "11.14.0"
resolved "https://registry.npmjs.org/motion/-/motion-11.14.0.tgz#af35fbf8346d409d79d42a615b4f4ffbd119bb60"
integrity sha512-PZvilcpIFZHxRl7f8HEELAD0sNqEq50IrMaIJPm1prr+yq6VadS4sylJvopVIxXqfesdv+m9MV072dZUeLeZ+w==
dependencies:
framer-motion "^11.14.0"
tslib "^2.4.0"

[email protected]:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
Expand Down

0 comments on commit 9f61187

Please sign in to comment.