{"id":30580560,"url":"https://github.com/react-component/banner-anim","last_synced_at":"2025-08-29T05:37:09.497Z","repository":{"id":48295088,"uuid":"56763308","full_name":"react-component/banner-anim","owner":"react-component","description":"Animate Banner React Component","archived":false,"fork":false,"pushed_at":"2021-08-02T21:19:32.000Z","size":10788,"stargazers_count":172,"open_issues_count":13,"forks_count":32,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-10T20:23:12.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://react-component.github.io/banner-anim/","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/react-component.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-21T10:04:06.000Z","updated_at":"2025-07-14T08:16:35.000Z","dependencies_parsed_at":"2022-09-05T13:00:18.047Z","dependency_job_id":null,"html_url":"https://github.com/react-component/banner-anim","commit_stats":null,"previous_names":[],"tags_count":67,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/banner-anim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fbanner-anim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fbanner-anim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fbanner-anim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fbanner-anim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/banner-anim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fbanner-anim/sbom","scorecard":{"id":765339,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-component/banner-anim","commit":"be210bdd0c664f294ed102b4f7d68f3023ac5a01"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T00:36:53.471Z","repository_id":48295088,"created_at":"2025-08-23T00:36:53.471Z","updated_at":"2025-08-23T00:36:53.471Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272636168,"owners_count":24967983,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-29T05:37:08.703Z","updated_at":"2025-08-29T05:37:09.491Z","avatar_url":"https://github.com/react-component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rc-banner-anim\n---\n\nReact BannerAnim Component\n\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-banner-anim.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-banner-anim\n[travis-image]: https://img.shields.io/travis/react-component/banner-anim.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/banner-anim\n[coveralls-image]: https://img.shields.io/coveralls/react-component/banner-anim.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/banner-anim?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/banner-anim.svg?style=flat-square\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/rc-banner-anim.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-banner-anim\n\n\n## Browser Support\n\n|![IE](https://github.com/alrra/browser-logos/blob/master/src/edge/edge_48x48.png?raw=true) | ![Chrome](https://github.com/alrra/browser-logos/blob/master/src/chrome/chrome_48x48.png?raw=true) | ![Firefox](https://github.com/alrra/browser-logos/blob/master/src/firefox/firefox_48x48.png?raw=true) | ![Opera](https://github.com/alrra/browser-logos/blob/master/src/opera/opera_48x48.png?raw=true) | ![Safari](https://github.com/alrra/browser-logos/blob/master/src/safari/safari_48x48.png?raw=true)|\n| --- | --- | --- | --- | --- |\n| IE 10+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |\n\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8012/examples/\n\n\nonline example: http://react-component.github.io/banner-anim/\n\n\n## install\n\n\n[![rc-banner-anim](https://nodei.co/npm/rc-banner-anim.png)](https://npmjs.org/package/rc-banner-anim)\n\n\n## Usage\n\n```js\nvar BannerAnim = require('rc-banner-anim');\nvar React = require('react');\nconst { Element } = BannerAnim;\nconst BgElement = Element.BgElement;\nReact.render(\u003cBannerAnim\u003e\n  \u003cElement key=\"a\"\u003e\n    \u003cBGElement key=\"bg\" style={{ background: 'url(img)' }}/\u003e\n    \u003cTweenOne key='0'\u003etest text\u003c/TweenOne\u003e\n  \u003c/Element\u003e\n  \u003cElement key=\"b\"\u003e\n    \u003cBGElement key=\"bg\" style={{ background: 'url(img)' }}/\u003e\n    \u003cTweenOne key='0'\u003etest text\u003c/TweenOne\u003e\n  \u003c/Element\u003e\n\u003c/BannerAnim\u003e, container);\n```\n\n## API\n\n### BannerAnim\n\n```\n`ref` control jump: \u003cBannerAnim ref={(c) =\u003e { this.banner = c; }}/\u003e\n\nprev: this.banner.prev();\n\nnext: this.banner.next();\n\njump: this.banner.slickGoTo(number); number from 0;\n```\n\n|   name   |      type       |   default    |        description    |\n|----------|-----------------|--------------|-----------------------|\n|   type   |  string / array | All animType | Provide `across`, `vertical`, `acrossOverlay`, `verticalOverlay`, (`gridBar`, `grid`) =\u003e duration is a single block of animation time, video bg no use |\n| duration |      number     |      450     | Single switch time.   |\n| delay    |     number      |      0       |    switch delay.      |\n| ease     |      string     | `easeInOutQuad` | easing.            |\n| initShow |      number     |    0         |  start show           |\n| arrow    |      boolean    |      `true`    |  `Arrow` is children, this is null and void. else is default arrow |\n| thumb    |      boolean    |      `true`    |  ^ |\n| autoPlay |      boolean    |      `false`  | auto play |\n| autoPlaySpeed |  number    |    5000       | auto play delay |\n| autoPlayEffect |  boolean    |    `true`       | auto play when mouse leave |\n| onChange |     func        |    -          | onChange(`before` or `after`, currentShowInt) |\n| prefixCls |    string      |   -           |  user class |\n| children |  react.component|   -           | `Element`(must), `Arrow`, `Thumb` |\n| sync      |   boolean      |   false       | `Element` the children and `Element` the same time animation |\n| dragPlay  | boolean        |   true        | drag play next or prev |\n| component | string | 'div' | component tag        |\n\n### Element\n\n\u003e children is `TweenOne`, animation type must `from`;\n\n|   name   |      type       |   default    |        description    |\n|----------|-----------------|--------------|-----------------------|\n| leaveChildHide |   boolean |  false   | children leave switch animation. Replace the `hideProps`.|\n| sync      |   boolean      |   false       | children and `Element` the same time animation |\n| prefixCls |     string      |   -           |  user class |\n| followParallax | object   |  null        | follow mouse anim  |\n| component | string | 'div' | component tag        |\n| componentProps | object     | null   | component is React.Element, component tag props, not add `style` |\n\n#### followParallax is object\n|   name   |      type       |   default    |        description    |\n|----------|-----------------|--------------|-----------------------|\n| delay    |     number      |  null        | open followParallax delay |\n| data     | array           |  null        | content: { key: string, value: number, type: array or string, bgPosition: string }; key: children key; value: animation interval value, example: value is 20 =\u003e [left: -20, center: 0 , right: 20] ; type: style or `x` `y`, bgPosition: if type is backgroundPosition, this is bg default position, else is invalid. |\n| ease | string        |  `easeOutQuad`   | animate ease. [refer](http://easings.net/en)    |\n| minMove    |   number        |  null        | ease.easeInOutQuad(start, minMove, 1, end); The mouse to move once, the minimum point of moving graphics, a second to reach the position of the mouse. |\n\n### Element.BgElement\n\n|   name   |      type       |   default    |        description    |\n|----------|-----------------|--------------|-----------------------|\n| className | string         | -            | className             |\n| scrollParallax | object | null | { y: 100 },  from bottom to top of browser, element leave display area y is 100 |\n| videoResize | boolean | true | children is video, video follow window resize |\n| component | string | 'div' | component tag        |\n| componentProps | object     | null   | component is React.Element, component tag props, not add `style` |\n\n### Arrow\n\n|   name   |      type       |   default    |        description    |\n|----------|-----------------|--------------|-----------------------|\n| arrowType |    'prev' \\| 'next' |  -       | arrow type  |\n| prefixCls |     string      |   -           |  user class |\n| component  | string / React.Element  | `div`   | component tag  |\n| componentProps | object     | null   | component is React.Element, component tag props, not add `style` |\n\n### Thumb\n\n|   name   |      type       |   default    |        description    |\n|----------|-----------------|--------------|-----------------------|\n| children  |     React.Element    |      -       |  must                 |\n| prefixCls |     string      |   -           |  user class |\n| component  | string / React.Element  | `div`   | component tag  |\n| componentProps | object     | null   | component is React.Element, component tag props, not add `style` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fbanner-anim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fbanner-anim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fbanner-anim/lists"}