{"_id":"@albertlo/react-reveal","_rev":"2-ca3ec976e6b78a96ffef972b2764f350","name":"@albertlo/react-reveal","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@albertlo/react-reveal","version":"2.0.0","author":{"name":"Roman Nosov","email":"rnosov@gmail.com"},"description":"Really simple way to add reveal on scroll animation to your React app.","license":"MIT","keywords":["react","reveal","reactreveal","scroll"],"repository":{"type":"git","url":"git+https://github.com/rnosov/react-reveal.git"},"bugs":{"url":"https://github.com/rnosov/react-reveal/issues"},"homepage":"https://www.react-reveal.com","main":"./index.js","dependencies":{"prop-types":"^15.5.10"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0 || ^17.0.0"},"devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.11.4","babel-jest":"^15.0.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-react-transform":"^2.0.2","babel-plugin-transform-runtime":"^6.12.0","babel-preset-es2015":"^6.9.0","babel-preset-react":"^6.5.0","babel-preset-stage-0":"^6.5.0","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.1.1","gulp":"^3.9.1","gulp-babel":"^6.1.2","gulp-clean":"^0.3.2","gulp-flatten":"^0.3.1","gulp-replace":"^0.6.1","gulp-uglify":"^2.0.0","jest":"^22.1.4","jest-cli":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0","uglify-js":"^2.7.3"},"scripts":{"build":"./node_modules/gulp/bin/gulp.js build","test":"jest .","prepare":"npm run build && npm run test -- -u;","clean":"./node_modules/gulp/bin/gulp.js clean"},"gitHead":"b9c46a0c33863dd3d36494317833ae3280f03dac","_id":"@albertlo/react-reveal@2.0.0","_nodeVersion":"8.17.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-x9DdFbg8aJwpPsUuGrMPaLmQUOkdwJOLZCwFVOK71Cap04fpfewOvUciPFH35uR2zI74eZuckk9lL6sR0wEmGA==","shasum":"aada8095953c393b1829726fe48f5a0f0d9b873a","tarball":"https://registry.npmjs.org/@albertlo/react-reveal/-/react-reveal-2.0.0.tgz","fileCount":75,"unpackedSize":165474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAMM6CRA9TVsSAnZWagAA/10P/3VUJ+tguezRtz0PP55E\nlbSOg8ZSQz7Mri77ZDuZ2Ldh/NZnd+IPFYXQ5CS+8IrCV2ylxiEuuilGwEPp\nPommk1OUVnfcTk63jcny8dbmhIEOEa2e1GYPR3V03WmJERXEmqv/5lvneFYT\njwikpuIrhhEVcxYRFuNkPY9DvZ852R5tRG+XUL9iRUnduWFAJXi8NDU44mdL\n8G68lg8841np0q0FfvMI7iXjdonARHeWM4sO+eF9ABHIIW5dEaavrxrJG1WP\nRntpkddcfzT77zOFd1tGJVOgOj7JplS2qjZdn6LvjMDapA6ZOR9qZkP6xNHA\njC4SIjw3pWbJ4v0fSebos7LFA/tcU8Phmaz0DqwNb6PWV3V0fFbSLtl+2To1\nYRXjUT9VApGrFChjRSYs/Wd3BQx5Zs0VS4TpKARPir93i+uSIWDbIblRxGfe\niaURRFtAhVnR8+ecvnXpSf8spG9TMJdqlbYVYLO7DZtBL708Vl2XsBuL9a7v\na4QxwLIbdxMpZxKLheGzMJQq0bFUmh/eD6pojbjcOeyl7iqj1NCmnEX0uyrb\nRnkSPniRdCGKZ2JOGDyI97qqp/dfrssw5023j6qxbnNj81JhH2B6/Pq2Ftqy\ncbtpTPVx/upmKJDR/GlHbPWx4F3zHaUGw7RiqnE+S7rfql3O8Z+JFvQRlD/o\nKTE7\r\n=b7Z9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkFr67021apEJDOYx+cKo4nquSI6+dpIFn917YE+vVFAIgGoiJgcM6oDna3EZOO0Sf/9xQ7rT3T3wXKpo4nFDn44g="}]},"_npmUser":{"name":"albertlht","email":"sero.albert@gmail.com"},"directories":{},"maintainers":[{"name":"albertlht","email":"sero.albert@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-reveal_2.0.0_1627439930103_0.17416523917326376"},"_hasShrinkwrap":false},"2.0.1":{"name":"@albertlo/react-reveal","version":"2.0.1","author":{"name":"Roman Nosov","email":"rnosov@gmail.com"},"description":"Really simple way to add reveal on scroll animation to your React app.","license":"MIT","keywords":["react","reveal","reactreveal","scroll"],"repository":{"type":"git","url":"git+https://github.com/Albert-Lo/react-reveal.git"},"bugs":{"url":"https://github.com/rnosov/react-reveal/issues"},"homepage":"https://www.react-reveal.com","main":"./index.js","dependencies":{"prop-types":"^15.5.10"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0 || ^17.0.0"},"devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.11.4","babel-jest":"^15.0.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-react-transform":"^2.0.2","babel-plugin-transform-runtime":"^6.12.0","babel-preset-es2015":"^6.9.0","babel-preset-react":"^6.5.0","babel-preset-stage-0":"^6.5.0","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.1.1","gulp":"^3.9.1","gulp-babel":"^6.1.2","gulp-clean":"^0.3.2","gulp-flatten":"^0.3.1","gulp-replace":"^0.6.1","gulp-uglify":"^2.0.0","jest":"^22.1.4","jest-cli":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0","uglify-js":"^2.7.3"},"scripts":{"build":"./node_modules/gulp/bin/gulp.js build","test":"jest .","prepare":"npm run build && npm run test -- -u;","clean":"./node_modules/gulp/bin/gulp.js clean"},"gitHead":"dc73820e0655fe81377f5905def0a77997436d92","_id":"@albertlo/react-reveal@2.0.1","_nodeVersion":"8.17.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Ik4pTHAMDda0mzqxOEhFskqY+67CgN/zFrhWtxza1/HLrF9bZusTpnqH/0oXa0pgUzftRZyrvtpYaurNPOkT2A==","shasum":"bff6e4457a5de22903e739e92635296560b7d72f","tarball":"https://registry.npmjs.org/@albertlo/react-reveal/-/react-reveal-2.0.1.tgz","fileCount":75,"unpackedSize":165783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAMqGCRA9TVsSAnZWagAATSkP/jKyefhpANYoPY6T8Kol\nrvPvd6+wCtcWBnSuDkTeT0ZSJo7hjV2WI5mJS008Tcp4hLIl44lne4am+4e9\nDAxqXXO+A9Wdz0n6VFY9E+Bkbll/XBLtkPGrkESJttA1QzLhX4PitzFQL/nk\nmzrK8KUHaZm4tBKM4aIGyCvj5nTdBP4UQJm3CeJo+wLq80mzOBNDBhPNAY/J\nQ+O9tF0pL/9lE4Cl3XjS2oiG607x5dq/H7ueQhMs64wcOqNYSqGk3D59/bTB\n88C8dI2zpASIjusXg42jD9g1oj+6QjCIx9crksT5z8iVjVruSFuwklaEc50D\npygy0nsG+Eg6ESkX2RJyvhujuXTC1gMqkMmUPlPPX6TDTwZzptzHDoX5i2pt\njWi/iAUxGYDN1xiRMJxQnOF7GOwyqpfGb5gXmPxpPEd92+OLQHgbmVLY8L/Y\n2h9w0ZDNHbXba5bw2u5irdkRf3pgMRbWJ1eIzaT9JFuqkOc/ECZstaDvS4oA\nL5VedemN2HShxOMgW3AVimOKK9pX2TiAB4rZVdCu9CoDwSiwzPArYRYItOOO\n61siYCII0wZRUkGKlLf7CoyVlbuznpyv866By7VNfQgCqDaX0eLdpcyMdu0y\nWzCKDkmwQDW5xeOruYb6xJgruvXLbcT9aKt9oBFoOXy6WMub5D3u3W9BowLF\n9FLD\r\n=e5/d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5FKGmkHqtht+zthabTKfTZhKvS0QMzzOThuydvkG53AiEAvb80cb8zXje+gfav7K13C3HEnZy/KxmrZde2bSqf7nM="}]},"_npmUser":{"name":"albertlht","email":"sero.albert@gmail.com"},"directories":{},"maintainers":[{"name":"albertlht","email":"sero.albert@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-reveal_2.0.1_1627441798681_0.5152756313117972"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-28T02:38:50.026Z","2.0.0":"2021-07-28T02:38:50.277Z","modified":"2022-04-04T12:35:25.974Z","2.0.1":"2021-07-28T03:09:58.801Z"},"maintainers":[{"name":"albertlht","email":"sero.albert@gmail.com"}],"description":"Really simple way to add reveal on scroll animation to your React app.","homepage":"https://www.react-reveal.com","keywords":["react","reveal","reactreveal","scroll"],"repository":{"type":"git","url":"git+https://github.com/Albert-Lo/react-reveal.git"},"author":{"name":"Roman Nosov","email":"rnosov@gmail.com"},"bugs":{"url":"https://github.com/rnosov/react-reveal/issues"},"license":"MIT","readme":"# Disclaimer:\n**This is a fork of rnosov/react-reveal to get rid of the errors and warning in React 17** .  \n**I do not know what I am doing, use this at your own risk** .  \n**Please do not try to make PR, I'm not trying to maintain this, I just want to get rid of the warnings :'(** \n\n# React Reveal\n\n[React Reveal](https://www.react-reveal.com/) is\nan animation framework for React. It's MIT licensed, has a tiny footprint\nand written specifically for React in ES6. It can be used to create various cool reveal\non scroll animations in your application.\nIf you liked this package, don't forget to star\nthe [Github repository](https://github.com/rnosov/react-reveal).\n\n## Live Examples\n\nA number of simple effect examples:\n- [Fade](https://www.react-reveal.com/examples/common/fade/)\n- [Flip](https://www.react-reveal.com/examples/common/flip/)\n- [Rotate](https://www.react-reveal.com/examples/common/rotate/)\n- [Zoom](https://www.react-reveal.com/examples/common/zoom/)\n- [Bounce](https://www.react-reveal.com/examples/common/bounce/)\n- [Roll](https://www.react-reveal.com/examples/common/roll/)\n\nAlso, there are more complicated examples of [animated form errors](https://www.react-reveal.com/examples/advanced/form/) and a [todo app](https://www.react-reveal.com/examples/advanced/todo/).\n\n## Search Engine Visibility \n\n`react-reveal` is regularly checked against googlebot in the Google Search Console to make sure that googlebot can see the content in the revealed elements. \n\n## Full Documentation\n\nFor a full documentation please visit [online docs](https://www.react-reveal.com/docs/).\n\n## Installation\n\nIn the command prompt run:\n\n```sh\nnpm install @albertlo/react-reveal --save\n```\n\nAlternatively you may use `yarn`:\n\n```sh\nyarn add @albertlo/react-reveal\n```\n\n## Quick Start\n\nImport effects from [React Reveal](https://www.npmjs.com/package/react-reveal) to your project. Lets try `Zoom` effect first:\n\n```javascript\nimport Zoom from 'react-reveal/Zoom';\n```\n\nPlace the following code somewhere in your `render` method: \n\n```jsx\n<Zoom>\n  <p>Markup that will be revealed on scroll</p>\n</Zoom>\n```\n\nYou should see zooming animation that reveals text inside the tag. You can change this text to any JSX you want. If you place this code further down the page you'll see that it'd appear as you scroll down.\n\n## Revealing React Components\n\nYou may just wrap your custom React component with the effect of your choosing like so:\n\n```jsx\n<Zoom>  \n  <CustomComponent />\n</Zoom>\n```\n\nIn such case, in the resulting `<CustomComponent />` HTML markup will be wrapped in a `div` tag. If you would rather have a different HTML tag then wrap `<CustomComponent />` in a tag of your choosing:\n\n```jsx\n<Zoom>\n  <section>\n    <CustomComponent />   \n  </section>\n</Zoom>\n```\n\nor if you want to customize `div` props:\n\n```jsx\n<Zoom>\n  <div className=\"some-class\">\n    <CustomComponent />   \n  </div>\n</Zoom>\n```\n\n## Revealing Images\n\nIf you want to reveal an image you can wrap `img` tag with with the desired `react-reveal` effect:\n\n```jsx\n<Zoom>\n  <img height=\"300\" width=\"400\" src=\"https://source.unsplash.com/random/300x400\" />\n</Zoom>\n```\n\nIt would be a very good idea to specify width and height of any image you wish to reveal.\n\n## Children\n\n`react-reveal` will attach a reveal effect to each child it gets. In other words,\n\n```jsx\n<Zoom>\n  <div>First Child</div>\n  <div>Second Child</div>\n</Zoom>\n```\n\nwill be equivalent to:\n\n```jsx\n<Zoom>\n  <div>First Child</div>\n</Zoom>\n<Zoom>\n  <div>Second Child</div>\n</Zoom>  \n```\n\nIf you don't want this to happen, you should wrap multiple children in a `div` tag:\n\n```jsx\n<Zoom>\n  <div>\n    <div>First Child</div>\n    <div>Second Child</div>\n  </div>\n</Zoom>\n```\n\n\n## Server Side Rendering\n\n`react-reveal` supports server side rendering out of the box. In some cases, when the javascript bundle arrives much later than the HTML&CSS it might cause a flickering. To prevent this `react-reveal` will not apply reveal effects on the initial load. \nAnother option is to apply gentle fadeout effect on the initial render. You can force it on all `react-reveal` elements by placing the following code somewhere near the entry point of your app:\n\n```jsx\nimport config from 'react-reveal/globals';\n\nconfig({ ssrFadeout: true });\n```\n\nOr you you can do it on a per element basis using `ssrFadeout` prop:\n\n```jsx\n<Zoom ssrFadeout><h1>Content</h1></Zoom>\n```\n\nOne last option is to use `ssrReveal` prop. If enabled, this option will suppress both flickering and `ssrFadeout` effect. The unfortunate drawback of this option is that the revealed content will appear hidden to Googlebot and to anyone with javascript switched off. So it will makes sense for images and/or headings which are duplicated elsewhere on the page.\n\n## Forking This Package\n\nClone the this repository using the following command:\n\n```sh\ngit clone https://github.com/rnosov/react-reveal.git\n```\n\nIn the cloned directory, you can run following commands:\n\n```sh\nnvm use\nnpm install\n```\n\nInstalls required node modules\n\n```sh\nnpm run build\n```\n\nBuilds the package for production to the `dist` folder\n\n```sh\nnpm test\n```\n\nRuns tests\n\n## License\n\nCopyright © 2018 Roman Nosov. Project source code is licensed under the MIT license.\n","readmeFilename":"README.md"}