{"id":19637364,"url":"https://github.com/stuymedova/easings","last_synced_at":"2026-05-13T01:02:07.276Z","repository":{"id":49411138,"uuid":"377891061","full_name":"stuymedova/easings","owner":"stuymedova","description":"Easing functions for smooth animations","archived":false,"fork":false,"pushed_at":"2021-07-17T06:10:18.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T21:46:29.908Z","etag":null,"topics":["deno","deno-mod","deno-module","denoland","easing-equations","easing-functions","easings","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/easings","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/stuymedova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-17T16:13:03.000Z","updated_at":"2024-08-30T22:16:31.000Z","dependencies_parsed_at":"2022-09-12T11:12:37.406Z","dependency_job_id":null,"html_url":"https://github.com/stuymedova/easings","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/stuymedova/easings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuymedova%2Feasings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuymedova%2Feasings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuymedova%2Feasings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuymedova%2Feasings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuymedova","download_url":"https://codeload.github.com/stuymedova/easings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuymedova%2Feasings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32963174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","deno-mod","deno-module","denoland","easing-equations","easing-functions","easings","typescript"],"created_at":"2024-11-11T12:34:11.455Z","updated_at":"2026-05-13T01:02:07.256Z","avatar_url":"https://github.com/stuymedova.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easings\n\n## Easing functions\n\n- Back easings: `backInOut(t)`, `backIn(t)`, `backOut(t)`\n- Bounce easings: `bounceInOut(t)`, `bounceIn(t)`, `bounceOut(t)`\n- Circle easings: `circleInOut(t)`, `circleIn(t)`, `circleOut(t)`\n- Elastic easings: `elasticInOut(t)`, `elasticIn(t)`, `elasticOut(t)`\n- Exponential easings: `expoInOut(t)`, `expoIn(t)`, `expoOut(t)`\n- Linear easings: `linear(t)`\n- Sine easings: `sineInOut(t)`, `sineIn(t)`, `sineOut(t)`\n- Quadratic easings: `quadInOut(t)`, `quadIn(t)`, `quadOut(t)`\n- Quartic easings: `quartInOut(t)`, `quartIn(t)`, `quartOut(t)`\n- Quintic easings: `quintInOut(t)`, `quintIn(t)`, `quintOut(t)`\n\n**Input**: time *t*, typically in the range [0, 1]  \n**Output**: “eased” time *tʹ*, also typically in the range [0, 1]\n\n## Demo/Usage\n\n```js\nimport * as easings from 'https://deno.land/x/easings/mod.ts';\n\nfor (let t = 0; t \u003c= 1; t += 0.05) {\n  const eased = easings.cubicInOut(t);\n  const str = repeat('*', eased * 20);\n  console.log(str);\n}\n\nfunction repeat(str, num) {\n  let result = '';\n  num = Math.round(num);\n  while (num--) {\n    if(num \u003e= 0) result += str;\n    else num = 0\n  }\n  return result;\n}\n```\n\nOutput: \n```\n\n*\n*\n**\n***\n*****\n*******\n**********\n*************\n***************\n*****************\n******************\n*******************\n*******************\n********************\n********************\n********************\n```\n\n## More on easing\n[Easing Graphs / D3 / Observable](https://observablehq.com/@d3/easing)*  \n[Easing Animations / D3 / Observable](https://observablehq.com/@d3/easing-animations)*  \n\n\\*Note that D3 has a slightly different API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuymedova%2Feasings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuymedova%2Feasings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuymedova%2Feasings/lists"}