{"id":15594787,"url":"https://github.com/innei/animate-uri","last_synced_at":"2026-03-06T21:31:39.830Z","repository":{"id":41887331,"uuid":"287294810","full_name":"Innei/animate-uri","owner":"Innei","description":"Animate your url transitions for that extra flair. 🔨👴","archived":false,"fork":false,"pushed_at":"2025-04-05T01:39:59.000Z","size":105,"stargazers_count":18,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T02:27:42.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://innei.github.io/animate-uri/","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/Innei.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":"2020-08-13T13:58:09.000Z","updated_at":"2025-02-18T06:33:53.000Z","dependencies_parsed_at":"2023-12-06T20:32:42.605Z","dependency_job_id":"a3e4542b-de4b-4e0b-b8de-f85c51b4bc35","html_url":"https://github.com/Innei/animate-uri","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":"0.47058823529411764","last_synced_commit":"2d86a565eb3eef7e5927a3a760f7834c9e87d566"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fanimate-uri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fanimate-uri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fanimate-uri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fanimate-uri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Innei","download_url":"https://codeload.github.com/Innei/animate-uri/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991511,"owners_count":21194893,"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-10-03T00:41:36.570Z","updated_at":"2026-03-06T21:31:39.742Z","avatar_url":"https://github.com/Innei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Animate URI\n\nAnimate your url transitions for that extra flair.\n\nInspire by [Neal Agarwal](https://twitter.com/nealagarwal/status/1293578708247248897)\n\nLook at [demo](https://innei.github.io/animate-uri/)\n\n## Usage\n\nFirst,\n\n```sh\nyarn add animate-uri\n```\n\nThen\n\n```js\nimport { animateUriFactory, bindAllLink } from 'animate-uri'\n\nanimateUriFactory({ duration: 60, shouldPushState: false }).start(\n  '/hello-world',\n  '/',\n)\n```\n\nOr you can bind all link(should in `a` tag href)\n\n```js\nconst instance = bindAllLink() // return a instance\n// do anything...\n```\n\nMore fun ways to use, you can change text after once finished animate, and again.\n\n```ts\ninstance\n  ?.start('/hey，这里是Tomon~。谢谢你能来看我~')\n  .then((i) =\u003e i?.start('/類は友を呼ぶ，独特的人会找到独特的人'))\n  .then((i) =\u003e i.start('/'))\n```\n\n## Used in Next.js\n\nYou can use this into your next.js application. In the `_app.tsx`, add event listener on router change.\n\n```tsx\nimport { animateUriFactory } from 'animate-uri/publish/index.esm'\nconst animateInstance = animateUriFactory()\n\n// componentDidMount(): void {\nRouter.events.on('routeChangeStart', (url) =\u003e {\n  animateInstance?.start(url)\n})\n\nRouter.events.on('routeChangeComplete', () =\u003e {\n  animateInstance?.stop()\n})\n\n// }\n```\n\nThat's all. Enjoy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fanimate-uri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnei%2Fanimate-uri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fanimate-uri/lists"}