{"id":22486309,"url":"https://github.com/Leopoldthecoder/Perspective","last_synced_at":"2025-08-02T19:31:28.659Z","repository":{"id":34709103,"uuid":"38685493","full_name":"Leopoldthecoder/Perspective","owner":"Leopoldthecoder","description":"🖼Parallax scrolling effect. And more.","archived":false,"fork":false,"pushed_at":"2024-09-27T02:40:08.000Z","size":6194,"stargazers_count":85,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-30T14:11:42.289Z","etag":null,"topics":["parallax","parallax-javascript-library","parallax-scrolling","parallax-tilt","parallax-translate","tilt-effect","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://perspective.js.org","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/Leopoldthecoder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-07T12:14:56.000Z","updated_at":"2024-10-16T08:21:23.000Z","dependencies_parsed_at":"2024-02-27T02:47:06.724Z","dependency_job_id":"d75a9b11-ef6b-41a6-a045-ff8eea9624dc","html_url":"https://github.com/Leopoldthecoder/Perspective","commit_stats":null,"previous_names":["leopoldthecoder/perspective.js"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2FPerspective","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2FPerspective/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2FPerspective/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2FPerspective/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leopoldthecoder","download_url":"https://codeload.github.com/Leopoldthecoder/Perspective/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228500111,"owners_count":17930001,"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":["parallax","parallax-javascript-library","parallax-scrolling","parallax-tilt","parallax-translate","tilt-effect","vanilla-javascript"],"created_at":"2024-12-06T17:14:20.409Z","updated_at":"2024-12-06T17:15:41.997Z","avatar_url":"https://github.com/Leopoldthecoder.png","language":"JavaScript","readme":"# Perspective.js\n\n\n\n##\n\n[Documentation](http://leopoldthecoder.github.io/Perspective)\n\n[Demo](http://leopoldthecoder.github.io/Perspective/examples)\n\nParallax scrolling/hovering effect. And more.\n\n## Features\nA standalone Javascript library to make dashing scrolling/hovering effects. Any CSS properties with number values are supported.\n\n## Installation\n### npm\n```shell\nnpm install perspective.js\n# or\nyarn add perspective.js\n```\n\nThen in your project\n```javascript\nimport { Scroll, Hover } from 'perspective.js'\n```\n\n### CDN\n```html\n\u003cscript type=\"text/javascript\" src=\"//unpkg.com/perspective.js/lib/perspective.js\"\u003e\u003c/script\u003e\n```\nOnce loaded, Perspective.js will register `perspective` to the `window` object, and it has two attributes: `Scroll` and `Hover`\n\n## Usage\n### Parallax scroll\n```javascript\n// using npm\nimport { Scroll } from 'perspective.js'\n\n// using CDN\nconst Scroll = perspective.Scroll\n\nnew Scroll('#wrap', {\n  stages: [{\n    id: 'basic',\n    scrollNumber: 60,\n    transition: 0,\n    items: [{\n      id: 'slow',\n      effects: [{\n        property: 'transform',\n        start: 'translateY(0px)',\n        end: 'translateY(-50px)'\n      }]\n    }, {\n      id: 'fast',\n      effects: [{\n        property: 'transform',\n        start: 'translateY(0px)',\n        end: 'translateY(-180px)'\n      }]\n    }]\n  }]\n})\n```\n\n### Parallax translate\n```javascript\n// using npm\nimport { Hover } from 'perspective.js'\n\n// using CDN\nconst Hover = perspective.Hover\n\nnew Hover('#wrap', {\n  max: 0,\n  scale: 1.1,\n  perspective: 500,\n  layers: [{\n    multiple: 0.1,\n    reverseTranslate: true\n  }, {\n    multiple: 0.3,\n    reverseTranslate: true\n  }]\n})\n```\n\n### Parallax tilt\n```javascript\n// using npm\nimport { Hover } from 'perspective.js'\n\n// using CDN\nconst Hover = perspective.Hover\n\nnew Hover('#wrap', {\n  max: 400,\n  scale: 1.1,\n  perspective: 500\n})\n```\n\n## Roadmap\n- Mobile support\n\n## Inspirations\n- [skrollr](https://github.com/Prinzhorn/skrollr)\n- [pressels.com](http://pressels.com/)\n- [Tilt.js](https://github.com/gijsroge/tilt.js) and [vanilla-tilt.js](https://github.com/micku7zu/vanilla-tilt.js)\n\n## License\nMIT\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeopoldthecoder%2FPerspective","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeopoldthecoder%2FPerspective","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeopoldthecoder%2FPerspective/lists"}