{"id":22018120,"url":"https://github.com/calm/kenburns","last_synced_at":"2025-07-30T00:37:06.520Z","repository":{"id":56446554,"uuid":"62420384","full_name":"calm/KenBurns","owner":"calm","description":"A little Swift utility that performs the Ken Burns effect on an image","archived":false,"fork":false,"pushed_at":"2020-11-06T23:01:16.000Z","size":54585,"stargazers_count":30,"open_issues_count":6,"forks_count":18,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-07-06T01:46:16.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://calm.com/jobs","language":"Swift","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-07-01T21:21:57.000Z","updated_at":"2024-09-26T02:43:58.000Z","dependencies_parsed_at":"2022-08-15T18:50:59.648Z","dependency_job_id":null,"html_url":"https://github.com/calm/KenBurns","commit_stats":null,"previous_names":["calmcom/kenburns"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/calm/KenBurns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FKenBurns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FKenBurns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FKenBurns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FKenBurns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calm","download_url":"https://codeload.github.com/calm/KenBurns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calm%2FKenBurns/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267785938,"owners_count":24144124,"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-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-11-30T05:09:59.490Z","updated_at":"2025-07-30T00:37:06.494Z","avatar_url":"https://github.com/calm.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ken Burns\n\n## Single Images\n\n![burns](KenBurns.gif)\n\n## Queue Images\n\n![burns](KenBurns2.gif)\n\nA simple yet configurable Ken Burns effect. Use a single image or queue multiple images. The Kens Burns effect is a popular transition effect in film popularized by American documentarian Ken Burns. It creates the effect of motion using still imagery.\n\n### Usage\n\n`KenBurns` is written in Swift, use `KenBurnsImageView` from Swift or Objective-C.  Examples are in Swift 3.0:\n\n```swift\nfunc newKenBurnsImageView(url: URL) -\u003e KenBurnsImageView {\n    let ken = KenBurnsImageView()\n    ken.fetchImage(url: url, placeholder: UIImage(named: \"placeholder\"))\n    ken.startAnimating()\n    return ken\n}\n\nfunc stop(ken: KenBurnsImageView) {\n    ken.stopAnimating()\n}\n\nfunc pause(ken: KenBurnsImageView) {\n    ken.pause()\n}\n\nfunc resume(ken: KenBurnsImageView) {\n    ken.resume()\n}\n```\n\nInitialize with `UIImage` or `URL`, and there are some paramaters you can set to configure the appearance:\n\n```swift\nfunc newKenBurnsImageView(image: UIImage) -\u003e KenBurnsImageView {\n    let ken = KenBurnsImageView()\n    ken.setImage(image: image)\n    ken.zoomIntensity = 1.5\n    ken.setDuration(min: 5, max: 13)\n    ken.startAnimating()\n    return ken\n}\n```\n\nKen Burns has been powering [Calm](http://www.calm.com/ios)’s nature scenes and meditations since 2016. We found that adding this effect in place of a static image improves click-through rates (and users love it).\n\nDue to unfortunate circumstances, Calm has no direct affiliation with [Ken Burns](https://en.wikipedia.org/wiki/Ken_Burns) himself 😞\n\n### Demo\n\nLaunch and run\n\n```\nroadtrip.xcworkspace\n```\n\nTo view demo\n\n### Installation\n\nKenBurns is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod \"KenBurns\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalm%2Fkenburns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalm%2Fkenburns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalm%2Fkenburns/lists"}