{"id":21320440,"url":"https://github.com/eclass/scrollmove","last_synced_at":"2025-07-12T04:32:48.194Z","repository":{"id":36074474,"uuid":"221304905","full_name":"eclass/scrollmove","owner":"eclass","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-19T11:55:32.000Z","size":335,"stargazers_count":0,"open_issues_count":41,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-19T12:54:06.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/eclass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-11-12T20:23:27.000Z","updated_at":"2019-12-24T15:57:18.000Z","dependencies_parsed_at":"2024-01-25T14:55:20.560Z","dependency_job_id":"a1e79ce0-5cf8-4982-b985-c2a709ef8560","html_url":"https://github.com/eclass/scrollmove","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":"0.32608695652173914","last_synced_commit":"394815235fb16461cecc8f9b8ed7196e0c359904"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":"eclass/ts-template-npm-libs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fscrollmove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fscrollmove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fscrollmove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fscrollmove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclass","download_url":"https://codeload.github.com/eclass/scrollmove/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225795392,"owners_count":17525316,"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":[],"created_at":"2024-11-21T19:47:50.728Z","updated_at":"2024-11-21T19:47:51.651Z","avatar_url":"https://github.com/eclass.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @eclass/scrollmove\n\n[![npm](https://img.shields.io/npm/v/@eclass/scrollmove.svg)](https://www.npmjs.com/package/@eclass/scrollmove)\n[![Build Status](https://travis-ci.org/eclass/scrollmove.svg?branch=master)](https://travis-ci.org/eclass/scrollmove)\n[![downloads](https://img.shields.io/npm/dt/@eclass/scrollmove.svg)](https://www.npmjs.com/package/@eclass/scrollmove)\n[![dependencies](https://img.shields.io/david/eclass/scrollmove.svg)](https://david-dm.org/eclass/scrollmove)\n[![devDependency Status](https://img.shields.io/david/dev/eclass/scrollmove.svg)](https://david-dm.org/eclass/scrollmove#info=devDependencies)\n\n\u003e Modulo para mover el scroll suave hasta centrar un elemento en pantalla\n\n### 🏠 [Homepage](https://github.com/eclass/scrollmove#readme)\n\n## Prerequisites\n\n- node \u003e=10.16.3\n\n## Install\n\n```sh\nnpm i @eclass/scrollmove\n```\n\n## Run tests\n\n```sh\nnpm run test\n```\n\n## Example 📖\n\n`goTo()` receives two parameters `id` and `options`\n\n```js\nimport goTo from '@eclass/scrollmove'\n...\n\u003cComponent\n  onClick={() =\u003e goTo(`#question-98765`)}\u003e\n/\u003e\n```\n\n```js\nimport goTo from '@eclass/scrollmove'\n...\n\u003cComponent\n  onClick={() =\u003e goTo(`#question-98765`, { behavior: 'smooth', block: 'center' })}\u003e\n/\u003e\n```\n\n### Params\n\n- id: string, that identifies the element in the dom.\n- options: object, with the properties `behavior`, `block` and `inline`. Default is set `{ behavior: 'smooth', block: 'center' }`.\n\nMore options from api of [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)\n\n## Author\n\n👤 **Ender Bonnet**\n\n- Twitter: [@enBonnet](https://twitter.com/enbonnet)\n- Github: [@enBonnet](https://github.com/enbonnet)\n\n## 📝 License\n\nCopyright © 2019 [Ender Bonnet \u003cenbonnet@pm.me\u003e (https://enbonnet.me/)](https://github.com/eclass).\u003cbr /\u003e\nThis project is [MIT](https://github.com/eclass/scrollmove/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclass%2Fscrollmove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclass%2Fscrollmove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclass%2Fscrollmove/lists"}