{"id":21174787,"url":"https://github.com/mindinventory/react-native-card-animation","last_synced_at":"2025-07-04T15:40:48.136Z","repository":{"id":57127710,"uuid":"400157019","full_name":"Mindinventory/react-native-card-animation","owner":"Mindinventory","description":"Beautiful Flatlist with OnScroll and OnClick animation. By using this, user can easily animate their flatlist, they can customise animation’s direction, duration, opacity with different colors. They can customise view by their own and integrate into flatlist.","archived":false,"fork":false,"pushed_at":"2021-08-31T11:13:35.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T09:21:55.542Z","etag":null,"topics":["animation-library","card-animations","design","mobile-app","reactnative","reactnative-ui"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mindinventory.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-26T12:15:33.000Z","updated_at":"2024-06-07T07:16:04.000Z","dependencies_parsed_at":"2022-08-31T16:11:27.614Z","dependency_job_id":null,"html_url":"https://github.com/Mindinventory/react-native-card-animation","commit_stats":null,"previous_names":["access-mindinventory/react-native-card-animation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Freact-native-card-animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Freact-native-card-animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Freact-native-card-animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Freact-native-card-animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mindinventory","download_url":"https://codeload.github.com/Mindinventory/react-native-card-animation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243624106,"owners_count":20321029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation-library","card-animations","design","mobile-app","reactnative","reactnative-ui"],"created_at":"2024-11-20T16:56:14.227Z","updated_at":"2025-03-14T18:19:59.143Z","avatar_url":"https://github.com/Mindinventory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nBeautiful Flatlist with OnScroll and OnClick animation. By using this, user can easily animate their flatlist, they can customise animation’s direction, duration, opacity with different colors. They can customise view by their own and integrate into flatlist.  \n\n# Installation\n\nusing npm:\n```\nnpm install @mindinventory/react-native-card-animation\n```\n\nusing yarn:\n```\nyarn add @mindinventory/react-native-card-animation\n```\n\n### Supported platform\n\n* iOS\n* Android\n\n### Dependencies\n\n* react-native-reanimated\n\n# Usage\n```js\n// User Data to load in List\n\nconst alarmData = [\n  {\n    id: Math.random(),\n    title: 'Hi..',\n    time: '06:00 AM',\n    bgColor: BLUE,\n  },\n  {\n    id: Math.random(),\n    title: 'Hello...',\n    time: '06:30 AM',\n    bgColor: LIGHT_GREEN,\n  },\n  {\n    id: Math.random(),\n    title: 'Hey Wake Up',\n    time: '07:00 AM',\n    bgColor: YELLOW,\n  },\n  {\n    id: Math.random(),\n    title: \"It's Morning...\",\n    time: '08:00 AM',\n    bgColor: SKIN,\n  },\n  {\n    id: Math.random(),\n    title: 'Have a Breakfast...',\n    time: '10:30 AM',\n    bgColor: SKYBLUE,\n  },\n  {\n    id: Math.random(),\n    title: 'Get ready to go out...',\n    time: '11:00 AM',\n    bgColor: PURPAL,\n  },\n  {\n    id: Math.random(),\n    title: 'Have a great day...',\n    time: '11:30 AM',\n    bgColor: LIGHT_BLUE,\n  },\n];\n\n// OnScroll Card Animation Values\n\nconst startValue = 100;\nconst startDegree = '0deg';\nconst endDegree = '5deg';\nconst perspectiveValue = 100;\n\n// OnPress Card Animation Values\n\nconst duration = 500;\nconst opacityToVal = 0.5;\nconst opacityEndVal = 1;\nconst bounceToVal = 1.1;\nconst bounceEndVal = 1;\nconst bgColor = “#1a212f”;\nconst spaceBetween = -25;\nconst borderRadius = 25;\nconst shadowRadius = 10;\nconst shadowOpacity = 1;\n\n// Implementation of  CardAnimation Component \n\n\u003cCardAnimation\n  list={DATA}\n  startValue={startValue}\n  startDegree={startDegree}\n  endDegree={endDegree}\n  perspectiveValue={perspectiveValue}\n  duration={duration}\n  opacityToVal={opacityToVal}\n  opacityEndVal={opacityEndVal}\n  bounceToVal={bounceToVal}\n  bounceEndVal={bounceEndVal}\n  backgroundColor={bgColor}\n  spaceBetween={spaceBetween}\n  borderRadius={borderRadius}\n  shadowRadius={shadowRadius}\n  shadowOpacity={shadowOpacity}\n  onCardPress={item =\u003e {alert(`You have pressed : ${item.time}`)}}\n  renderCard={item =\u003e \u003cCustomCardView item={item} /\u003e}\n/\u003e\n```\n\n# Component props\n\n| prop              | value        | required/optional\t| description                                               |\n| ------            | ------       | ------             | ------                                                    |\n| list\t            | array\t       | required\t          | List of data which load in FlatList.                      |\n| startValue\t      | number\t     | optional\t          | Start value for animation.                                |\n| startDegree\t      | string\t     | optional\t          | Start point for animate view.                             |\n| endDegree\t        | string\t     | optional\t          | End point for animate view.                               |\n| perspectiveValue\t| number\t     | optional\t          | Max range value to tilt view on scaleX.                   |\n| duration\t        | number\t     | optional\t          | Animation duration                                        |\n| opacityToVal\t    | number\t     | optional\t          | Start value for animate opacity of view.                  |\n| opacityEndVal\t    | number\t     | optional\t          | End value for animate opacity of view.                    |\n| bounceToVal\t      | number\t     | optional\t          | Start value for animate bounce of view.                   |\n| bounceEndVal\t    | number\t     | optional\t          | End value for animate bounce of view.                     |\n| backgroundColor\t  | string\t     | optional\t          | It will apply on flatlist background colour.              |\n| spaceBetween\t    | number\t     | optional\t          | Increase and decrease the space between list of items.    |\n| borderRadius\t    | number\t     | optional\t          | Custom border radius can apply on list of items.          |\n| shadowRadius\t    | number\t     | optional\t          | Custom shadow radius can apply on list of items.          |\n| shadowOpacity\t    | number\t     | optional\t          | Custom shadow opacity can apply on list of items.         |\n| onCardPress\t      | function\t   | optional\t          | Get callBack data form selected index of flatlist.        |\n| renderCard\t      | function\t   | required\t          | Render custom component in flatlist created by user.      |\n\n\n# LICENSE!\n\nReact-native-card-animation is [MIT-licensed](https://github.com/access-mindinventory/react-native-card-animation/blob/master/LICENSE).\n\n\n# Let us know!\n\nWe would be really happy if you send us links of your projects where you use our component. Just send an email to sales@mindinventory.com and do let us know if you have any questions or suggestion regarding our work.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindinventory%2Freact-native-card-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindinventory%2Freact-native-card-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindinventory%2Freact-native-card-animation/lists"}