{"id":31066630,"url":"https://github.com/kavil/ng2smoothscroll","last_synced_at":"2025-09-26T14:11:43.314Z","repository":{"id":58239560,"uuid":"87786749","full_name":"kavil/ng2SmoothScroll","owner":"kavil","description":"A pure-javascript library and set of directives to scroll smoothly to an element with easing.","archived":false,"fork":false,"pushed_at":"2019-11-25T03:13:50.000Z","size":11,"stargazers_count":12,"open_issues_count":6,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-15T19:02:02.205Z","etag":null,"topics":["angular2","ng2smoothscroll","smoothscroll"],"latest_commit_sha":null,"homepage":null,"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/kavil.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":"2017-04-10T08:35:24.000Z","updated_at":"2023-02-15T14:10:58.000Z","dependencies_parsed_at":"2022-08-31T00:02:12.872Z","dependency_job_id":null,"html_url":"https://github.com/kavil/ng2SmoothScroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kavil/ng2SmoothScroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavil%2Fng2SmoothScroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavil%2Fng2SmoothScroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavil%2Fng2SmoothScroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavil%2Fng2SmoothScroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kavil","download_url":"https://codeload.github.com/kavil/ng2SmoothScroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavil%2Fng2SmoothScroll/sbom","scorecard":{"id":551918,"data":{"date":"2025-08-11","repo":{"name":"github.com/kavil/ng2SmoothScroll","commit":"2f653ac0a5b3f90b6f01280049c3c24bcd8fcd20"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":5,"reason":"Found 4/8 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T11:07:16.086Z","repository_id":58239560,"created_at":"2025-08-20T11:07:16.086Z","updated_at":"2025-08-20T11:07:16.086Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277088765,"owners_count":25758769,"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-09-26T02:00:09.010Z","response_time":78,"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":["angular2","ng2smoothscroll","smoothscroll"],"created_at":"2025-09-15T19:00:53.774Z","updated_at":"2025-09-26T14:11:43.292Z","avatar_url":"https://github.com/kavil.png","language":"TypeScript","readme":"Angular2 smooth scroll\n==============\n\n\u003e base on[Angular smooth scroll](https://github.com/d-oliveros/ngSmoothScroll)\n\nA pure-javascript library and set of directives to scroll smoothly to an element with easing. Easing support contributed by Willem Liu with code from Gaëtan Renaudeau.\n\nNo jQuery required.\n\n# Features\n\n  * Exposes a service that scrolls the window to an element's location\n  * Provides two directives that enable smooth scrolling to elements.\n  * Clean: No classes are added, no jQuery is required, no CSS files or configuration is needed.\n  * Scrolling within a custom container added in 2.0.0\n\n# Installation\n\n```js\n// bower:\nimport { SmoothScrollToDirective, SmoothScrollDirective } from \"ng2SmoothScroll\";\n\n// npm:\nimport { SmoothScrollToDirective, SmoothScrollDirective } from \"ng2-smooth-scroll\";\n...\ndeclarations[\n\t...\n\tSmoothScrollToDirective,\n\tSmoothScrollDirective,\n\t...\n]\n```\n\n# Bower\n\nInstall with bower with:\n\n```bash\nbower install ng2SmoothScroll\n```\n\n# Npm\n\nInstall with npm with:\n\n```bash\nnpm install ng2-smooth-scroll\n```\n\n# Usage - As a directive\n\nThis module provides two directives:\n\n#### smoothScroll:\n\nAttribute. Scrolls the window to this element, optionally validating the expression inside scroll-if.\n\nExample:\n```html\n\n// Basic - The window will scroll to this element's position when compiling this directive\n\u003cdiv smoothScroll\u003e\u003c/div\u003e\n\n// With options\n\u003cdiv smoothScroll\n\t[duration]=\"800\"\n\t[easing]=\"easeInQuint\"\n\t[offset]=\"120\"\n\t[middleAlign]=\"true\"\n\t[callbackBefore]=\"aFunction(element)\"\n\t[callbackAfter]=\"anotherFunction\"\u003e\n\t{{...}}\n\u003c/div\u003e\n\n// Inside a custom container\n\u003cdiv smoothScroll\n\t[duration]=\"800\"\n\t[easing]=\"easeInQuint\"\n\t[offset]=\"120\"\n\t[callbackBefore]=\"aFunction(element)\"\n\t[callbackAfter]=\"anotherFunction\"\n\t[containerId]=\"container-id\"\u003e\n\t{{...}}\n\u003c/div\u003e\n\n// With condition\n\u003cdiv smoothScroll\n\t[scrollIf]=\"myExpression\"\u003e\n\t{{...}}\n\u003c/div\u003e\n\n// Inside ng-repeat\n\u003cdiv smoothScroll\n\t[scrollIf]=\"myExpression\"\n\t[duration]=\"2500\"\u003e\n\t{{...}}\n\u003c/div\u003e\n```\n\n####scrollTo:\n\nAttribute. Scrolls the window to the specified element ID when clicking this element.\n\nExample:\n```html\n\n// Basic\n\u003ca href=\"#\"\n\t[scrollTo]=\"'my-element-3'\"\u003e\n\tClick me!\n\u003c/a\u003e\n\n// Custom containers\n\u003ca href=\"#\"\n\t[scrollTo]=\"'my-element-3'\"\n\t[containerId]=\"custom-container-id\"\u003e\n\tClick me!\n\u003c/a\u003e\n\n// onClick for non-anchor tags\n\u003cdiv [scrollTo]=\"'my-element-3'\"\n\t[containerId]=\"custom-container-id\"\u003e\n\tClick me!\n\u003c/div\u003e\n\n// With options\n\u003cbutton\n\t[scrollTo]=\"'elem-id5'\"\n\t[duration]=\"1800\"\n\t[middleAlign]=\"true\"\n\t[callbackBefore]=\"aFunction(element)\"\n\t[callbackAfter]=\"anotherFunction\"\u003e\n\tScroll to next page.\n\u003c/button\u003e\n\n\n```\n\n### Options\n\n#### duration\nType: `Integer`\nDefault: `800`\n\nThe duration of the smooth scroll, in miliseconds.\n\n#### offset\nType: `Integer`\nDefault: `0`\n\nThe offset from the top of the page in which the scroll should stop.\n\n#### easing\ntype: `string`\ndefault: `easeInOutQuart`\n\nthe easing function to be used for this scroll.\n\n#### middleAlign\ntype: `boolean`\ndefault: `false`\n\nMiddle align the scrolled element\n\n#### scrollOnClick\ntype: `boolean`\ndefault: `false`\n\n(smoothScroll directive only) Scroll to element when it is clicked\n\n#### callbackBefore\ntype: `function`\ndefault: `function(element) {}`\n\na callback function to run before the scroll has started. It is passed the\nelement that will be scrolled to.\n\n#### callbackAfter\ntype: `function`\ndefault: `function(element) {}`\n\na callback function to run after the scroll has completed. It is passed the\nelement that was scrolled to.\n\n#### containerId\ntype: `string`\ndefault: null\n\nID of the scrollable container which the element is a child of.\n\n### Easing functions\n\nThe available easing functions are:\n * 'easeInQuad'\n * 'easeOutQuad'\n * 'easeInOutQuad'\n * 'easeInCubic'\n * 'easeOutCubic'\n * 'easeInOutCubic'\n * 'easeInQuart'\n * 'easeOutQuart'\n * 'easeInOutQuart'\n * 'easeInQuint'\n * 'easeOutQuint'\n * 'easeInOutQuint'\n\nCheers.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavil%2Fng2smoothscroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkavil%2Fng2smoothscroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavil%2Fng2smoothscroll/lists"}