{"id":16321492,"url":"https://github.com/doodlewind/naivescroll","last_synced_at":"2025-08-23T10:34:15.839Z","repository":{"id":80193171,"uuid":"64051739","full_name":"doodlewind/naiveScroll","owner":"doodlewind","description":"Tiny jQuery full page scroll effect plugin.","archived":false,"fork":false,"pushed_at":"2016-07-24T06:19:52.000Z","size":32,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T10:11:10.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/doodlewind.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":"2016-07-24T06:19:25.000Z","updated_at":"2021-04-30T17:01:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"db66ec6b-01d2-4eeb-8040-a493fdbdb9a1","html_url":"https://github.com/doodlewind/naiveScroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doodlewind/naiveScroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2FnaiveScroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2FnaiveScroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2FnaiveScroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2FnaiveScroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doodlewind","download_url":"https://codeload.github.com/doodlewind/naiveScroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2FnaiveScroll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746657,"owners_count":24813575,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-10T22:47:56.877Z","updated_at":"2025-08-23T10:34:15.834Z","avatar_url":"https://github.com/doodlewind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# naiveScroll\nTiny jQuery full page scroll effect plugin.\n\n## Features\n* Override mouse whell event to scroll full page.\n* Minimum extra HTML elements required.\n* Prevents redundant events from being triggered.\n* Provide API to manually scroll up or down.\n* Tiny size, 1KB zipped.\n\n## Usage\n\n### HTML\nSimply use basic `\u003csection\u003e` element to contain the pages you need to scroll. No other class or properties is required. You can also modify JS code to use other DOM element as container.\n\n``` html\n\u003cbody\u003e\n    \u003csection\u003e\u003c/section\u003e\n    \u003csection\u003e\u003c/section\u003e\n    \u003csection\u003e\u003c/section\u003e\n\u003c/body\u003e\n```\n\n### CSS\nYou can custom the HTML `\u003csection\u003e` created above as you like. For example, you can use diffferent background images for each `\u003csection\u003e` as below.\n\nFirstly add some classes to distinguish each class.\n\n``` html\n\u003cbody\u003e\n    \u003csection class=\"page1\"\u003e\u003c/section\u003e\n    \u003csection class=\"page2\"\u003e\u003c/section\u003e\n    \u003csection class=\"page3\"\u003e\u003c/section\u003e\n\u003c/body\u003e\n```\n\nThen custom each sections with your styles.\n\n``` css\n/* use background color */\n.page1 {\n    top: 0;\n    background-color: lightcoral;\n}\n\n/* or use background image */\n.page2 {\n    top: 100%;\n    background: url(\"foo.jpg\") no-repeat center center;\n    background-size: cover;\n}\n\n/* notice the top property */\n.page3 {\n    top: 200%;\n    background-color: lightblue;\n}\n```\n\n### JS\nOnce you finish the static content, you can easily enable naiveScroll with jQuery.\n\n#### Enable mouse wheel scroll effect\nJust call `init` method and test it out.\n\n``` js\n$(this)._naiveScroll.init();\n```\n\n#### Bind scroll effect to other events\nNow naiveScroll only supports scroll up or down one page per time. You can modify its source code to support your compenents.\n\n``` js\n$('#upBtn').click(function () {\n    $(this)._naiveScroll.triggerScroll(100);\n});\n    \n$('#downBtn').click(function () {\n    $(this)._naiveScroll.triggerScroll(-100);\n});\n```\n\nHave fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodlewind%2Fnaivescroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoodlewind%2Fnaivescroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodlewind%2Fnaivescroll/lists"}