{"id":19730387,"url":"https://github.com/lnardon/interactiveparallax","last_synced_at":"2026-04-15T14:04:53.456Z","repository":{"id":123870916,"uuid":"357063372","full_name":"lnardon/InteractiveParallax","owner":"lnardon","description":"A simple npm package to add parallax to HTML targets.","archived":false,"fork":false,"pushed_at":"2021-11-12T06:41:31.000Z","size":8876,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-10T17:49:54.496Z","etag":null,"topics":["css","javascript","mouse-tracking","npm","package","parallax","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/interactiveparallax","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnardon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-12T05:00:50.000Z","updated_at":"2022-07-17T02:39:35.000Z","dependencies_parsed_at":"2024-08-19T11:47:46.253Z","dependency_job_id":null,"html_url":"https://github.com/lnardon/InteractiveParallax","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/lnardon%2FInteractiveParallax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnardon%2FInteractiveParallax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnardon%2FInteractiveParallax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnardon%2FInteractiveParallax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnardon","download_url":"https://codeload.github.com/lnardon/InteractiveParallax/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241055897,"owners_count":19901676,"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":["css","javascript","mouse-tracking","npm","package","parallax","typescript"],"created_at":"2024-11-12T00:16:10.830Z","updated_at":"2026-04-15T14:04:53.412Z","avatar_url":"https://github.com/lnardon.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interactive Parallax\n\nA module to create a parallax that interacts with the mouse move.\n\n[![NPM](https://img.shields.io/npm/v/interactiveparallax.svg)](https://www.npmjs.com/package/interactiveparallax) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Demo\n\n\u003cp align=\"center\" \u003e\n  \u003cimg src=\"./assets/demo.gif\" style=\"height: 300px\"\u003e\n\u003c/p\u003e\n\nLive Demo [Here](https://lnardon.github.io/InteractiveParallax/ \"Interactive Parallax Demo\")\n\n## Installation\n\n```bash\nnpm install interactiveparallax\n```\n\n## Usage\n\n### JavaScript\n\n```ts\nimport useParallax from \"animationsequence\";\n\n// containerClass = the class name of the container where the parallax will happen.\n// targetClass = the class name of the targets to apply the effect.\n// alertMobileUser = argument to inform in case the device has no support for the package.(Optional)\nuseParallax(containerClass: string, targetClass: string, alertMobileUser?: boolean)\n```\n\n### HTML Element\n\n```html\n\u003c!-- \n  parallax-speed-x = X-axis parallax speed for the target. (Number between -50 and 50)\n  parallax-speed-y = Y-axis parallax speed for the target. (Number between -50 and 50)\n--\u003e\n\u003cdiv class=\"target\" parallax-speed-x=\"-7\" parallax-speed-y=\"11\"\u003e\u003c/div\u003e\n```\n\n## Example\n\n```html\n\u003c!-- HTML --\u003e\n\u003cdiv class=\"splash\"\u003e\n  \u003ch1 class=\"title target\" parallax-speed=\"0.3\"\u003eInteractive Parallax\u003c/h1\u003e\n  \u003cdiv class=\"target\" parallax-speed-x=\"13\" parallax-speed-y=\"-19\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"target\" parallax-speed-x=\"-21\" parallax-speed-y=\"14\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n```js\n// Javascript\nuseParallax(\"splash\", \"target\", true);\n```\n\nThe full source code of the [Live Example](https://lnardon.github.io/InteractiveParallax/ \"Interactive Parallax Demo\") can be found in the `./index.html` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnardon%2Finteractiveparallax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnardon%2Finteractiveparallax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnardon%2Finteractiveparallax/lists"}