{"id":22018105,"url":"https://github.com/calm/calmparametricanimations","last_synced_at":"2025-07-05T06:07:34.236Z","repository":{"id":56905577,"uuid":"72770902","full_name":"calm/CalmParametricAnimations","owner":"calm","description":"Extends native CAKeyframeAnimations to use all of the complex easing functions found at http://www.easings.net","archived":false,"fork":false,"pushed_at":"2016-11-03T17:48:18.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-06-12T21:12:10.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/calm.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":"2016-11-03T17:40:49.000Z","updated_at":"2021-09-20T21:38:17.000Z","dependencies_parsed_at":"2022-08-20T19:20:26.529Z","dependency_job_id":null,"html_url":"https://github.com/calm/CalmParametricAnimations","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/calm/CalmParametricAnimations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FCalmParametricAnimations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FCalmParametricAnimations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FCalmParametricAnimations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FCalmParametricAnimations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calm","download_url":"https://codeload.github.com/calm/CalmParametricAnimations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FCalmParametricAnimations/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263692914,"owners_count":23496944,"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-30T05:09:56.039Z","updated_at":"2025-07-05T06:07:34.218Z","avatar_url":"https://github.com/calm.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CalmParametricAnimations\n\nA nice iOS extension that gives `CAKeyframeAnimation` support for all of the complex easing curves found at http://easings.net\n\n## Installation\n\nAdd `pod 'CalmParametricAnimations'` to your `Podfile` or download the source [here](https://github.com/calm/CalmParametricAnimations)\n\n## Curves\n\n`CalmParametricAnimations` supports the following curves (type `ParametricTimeBlock`):\n\n```\ntypedef double (^ParametricTimeBlock)(double time)\n\nsineIn\nsineOut\nsineInOut\nsquashedSineInOut\n\nlinear\n\nappleIn\nappleOut\nappleInOut\n\nbackIn\nbackOut\nbackInOut\neaseInBackOut\neaseOutDramatic\n\nquadraticIn\nquadraticOut\n\ncubicIn\ncubicOut\ncubicInOut\n\ncircularIn\ncircularOut\n\nexpoIn\nexpoOut\nexpoInOut\n\nelasticIn\nelasticOut\n\nvariableElasticOut (intensity) -\u003e ParametricTimeBlock\nbezierEvaluator (time, point1, point2) -\u003e ParametricTimeBlock\narc (radius, center) -\u003e ParametricTimeBlock\n```\n\nThese can the be evaluated directly as functions passing `double` time from 0 - 1, or by using one of the \"value blocks\" we’ve defined:\n\n```\ndouble\npoint\nsize\nrect\ncolor\ntransform3D\n```\n\nEach of these value blocks has a corresponding extension method on CAKeyframeAnimation that allows passing of the key-path, the time function. For example:\n\n```\n+ (instancetype)animationWithKeyPath:(NSString *)path\n                             timeFxn:(ParametricTimeBlock)timeFxn\n                            fromRect:(CGRect)fromValue\n                              toRect:(CGRect)toValue;\n```\n\nwhich will producte an animation that interpolates between the two rects according to the easing curve, with the duration set after initialization.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalm%2Fcalmparametricanimations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalm%2Fcalmparametricanimations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalm%2Fcalmparametricanimations/lists"}