{"id":15413090,"url":"https://github.com/daybrush/page","last_synced_at":"2026-02-26T17:30:19.273Z","repository":{"id":57106442,"uuid":"169778701","full_name":"daybrush/page","owner":"daybrush","description":"You can check the page in and out of the screen.","archived":false,"fork":false,"pushed_at":"2019-02-12T13:32:35.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T02:29:02.802Z","etag":null,"topics":["dom","enter","exit","io","page","visible"],"latest_commit_sha":null,"homepage":"https://daybrush.com","language":"TypeScript","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/daybrush.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}},"created_at":"2019-02-08T18:15:48.000Z","updated_at":"2019-04-12T15:57:52.000Z","dependencies_parsed_at":"2022-08-20T21:40:19.581Z","dependency_job_id":null,"html_url":"https://github.com/daybrush/page","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/daybrush%2Fpage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daybrush%2Fpage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daybrush%2Fpage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daybrush%2Fpage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daybrush","download_url":"https://codeload.github.com/daybrush/page/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869222,"owners_count":19710485,"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":["dom","enter","exit","io","page","visible"],"created_at":"2024-10-01T16:55:26.139Z","updated_at":"2026-02-26T17:30:17.199Z","avatar_url":"https://github.com/daybrush.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @daybrush/page  [![npm version](https://badge.fury.io/js/%40daybrush%2Fpage.svg)](https://badge.fury.io/js/%40daybrush%2Fpage)\n\nYou can check the page in and out of the screen. \n\nSetting the range allows you to check in and out of the range.\n\n\n[**API Documentation**](https://daybrush.com/page/release/latest/doc/index.html)\n\n```\n$ npm i @daybrush/page\n```\n\n```js\nimport Page from \"@daybrush/page\";\n\nconst pages = new Page.s({\n  events: [\"resize\", \"scroll\"],\n});\n\nconst page1 = new Page(\".page1\");\n\npage1.on({\n  \"enter\": e =\u003e {\n    e.target.classList.add(\"enter\");\n  },\n  \"exit\": e =\u003e {\n    e.target.classList.remove(\"enter\");\n  },\n});\n\nconst page2 = new Page(\".page2\");\n\npage2.on({\n  \"enter\": e =\u003e {\n    e.target.classList.add(\"enter\");\n  },\n  \"exit\": e =\u003e {\n    e.target.classList.remove(\"enter\");\n  },\n});\npage2.range([\"100% - 80\", \"100%\"]).on({\n  \"enter\": e =\u003e {\n    utils.addClass(header, \"white\");\n  },\n  \"exit\": e =\u003e {\n    utils.removeClass(header, \"white\");\n  },\n});\npages.add(page1);\npages.add(page2);\n\npages.scroll();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaybrush%2Fpage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaybrush%2Fpage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaybrush%2Fpage/lists"}