{"id":13680278,"url":"https://github.com/drcmda/react-springy-parallax","last_synced_at":"2025-05-15T18:07:37.021Z","repository":{"id":40002955,"uuid":"85746269","full_name":"drcmda/react-springy-parallax","owner":"drcmda","description":"🌊 A springy, composable parallax-scroller for React - deprecated","archived":false,"fork":false,"pushed_at":"2018-03-22T17:23:43.000Z","size":1568,"stargazers_count":1311,"open_issues_count":4,"forks_count":52,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-14T08:43:38.205Z","etag":null,"topics":[],"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/drcmda.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":"2017-03-21T19:47:48.000Z","updated_at":"2025-05-12T11:30:56.000Z","dependencies_parsed_at":"2022-06-26T06:42:20.626Z","dependency_job_id":null,"html_url":"https://github.com/drcmda/react-springy-parallax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drcmda%2Freact-springy-parallax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drcmda%2Freact-springy-parallax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drcmda%2Freact-springy-parallax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drcmda%2Freact-springy-parallax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drcmda","download_url":"https://codeload.github.com/drcmda/react-springy-parallax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394722,"owners_count":22063984,"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":[],"created_at":"2024-08-02T13:01:15.154Z","updated_at":"2025-05-15T18:07:36.991Z","avatar_url":"https://github.com/drcmda.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"\u003cb\u003e *** This project has been merged into react-spring:\u003c/b\u003e https://github.com/drcmda/react-spring\n    \n\u003cb\u003e *** Changes and bugfixes will go there instead. \u003c/b\u003e\n\n\n--\n\nA springy, composable parallax-scroller for React.\n\n    npm install react-springy-parallax --save\n\nDemo: http://react-springy-parallax.surge.sh\n\nSimple example: http://react-springy-parallax-simple.surge.sh\n\nExample source: https://github.com/drcmda/react-springy-parallax/blob/master/example/index.js\n\nMore complex example: https://github.com/drcmda/awv3node-homepage (the one in the thumbnail)\n\n![intro](intro.gif)\n\n\u003cb\u003eHow to use\u003c/b\u003e\n\n```js\nimport Parallax from 'react-springy-parallax'\n\n// Pages determines the total height of the inner content container\n// Each page takes 100% height of the visible outer container by default\n\u003cParallax ref='parallax' pages={3}\u003e\n\n    // Add as many layers as you like\n    \u003cParallax.Layer\n        // Page offset, or where the layer will be at when scrolled to\n        // 0 means start, 1 second page, 1.5 second and half, and so on ...\n        offset={0}\n        // Parallax factor, allows for positive and negative values\n        // Shifts the layer up or down in accordance to its offset\n        speed={0.5}\u003e\n\n        \u003cspan\u003eLayers can contain anything\u003c/span\u003e\n\n    \u003c/Parallax.Layer\u003e\n\n\u003c/Parallax\u003e\n```\n\n\u003cb\u003eCan the effect be configured or muted?\u003c/b\u003e\n\nYes, you can use anything the Animated library offers: http://browniefed.com/react-native-animation-book\n\n```js\nimport Animated from 'animated/lib/targets/react-dom'\nimport Easing from 'animated/lib/Easing'\n\n\u003cParallax\n    effect={(animation, toValue) =\u003e\n        Animated.timing(animation, { toValue, duration: 200, easing: Easing.elastic(2) })}\n    ... \u003e\n```\n\nOr a zero timer for a tame, old-school parallax:\n\n```js\neffect={(animation, toValue) =\u003e\n    Animated.timing(animation, { toValue, duration: 0 })}\n```\n\n\u003cb\u003eIs it possible disable the scroll bar for custom page navigation?\u003c/b\u003e\n\nYes. In this mode it will also make sure window-resize retains the last page seen.\n\nYou can always use `scrollTo`, scroll bar or not, there is no restriction.\n\n```js\n\u003cParallax\n    ref={ref =\u003e this.parallax = ref}\n    scrolling={false}\n    ... \u003e\n    \u003cParallax.Layer\u003e\n        \u003cdiv onClick={() =\u003e this.parallax.scrollTo(1)}\u003e\n            Click to get to the next page\n```\n\n\u003cb\u003eDoes it scroll horizontally as well?\u003c/b\u003e\n\nSure does.\n\n```js\n\u003cParallax horizontal ... \u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrcmda%2Freact-springy-parallax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrcmda%2Freact-springy-parallax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrcmda%2Freact-springy-parallax/lists"}