{"id":13849116,"url":"https://github.com/jberlana/JBKenBurns","last_synced_at":"2025-07-12T16:30:43.405Z","repository":{"id":1728658,"uuid":"2466616","full_name":"jberlana/JBKenBurns","owner":"jberlana","description":"Ken Burns effect for iOS. The feature enables a widely used technique of embedding still photographs in motion pictures, displayed with slow zooming and panning effects, and fading transitions between frames.","archived":false,"fork":false,"pushed_at":"2017-04-20T10:03:02.000Z","size":19278,"stargazers_count":542,"open_issues_count":12,"forks_count":120,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-10-31T16:09:48.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dustin/mac-zfs","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jberlana.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":"2011-09-27T09:20:39.000Z","updated_at":"2024-10-22T13:46:18.000Z","dependencies_parsed_at":"2022-08-19T07:51:14.628Z","dependency_job_id":null,"html_url":"https://github.com/jberlana/JBKenBurns","commit_stats":null,"previous_names":["jberlana/ioskenburns"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jberlana%2FJBKenBurns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jberlana%2FJBKenBurns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jberlana%2FJBKenBurns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jberlana%2FJBKenBurns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jberlana","download_url":"https://codeload.github.com/jberlana/JBKenBurns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829365,"owners_count":17530663,"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-08-04T19:01:08.292Z","updated_at":"2024-11-22T01:30:31.203Z","avatar_url":"https://github.com/jberlana.png","language":"Objective-C","funding_links":[],"categories":["Objective-C","etc"],"sub_categories":[],"readme":"iOS Ken Burns effect\n====================\n\n**The goal of this project is to create a `UIView` that can generate a Ken Burns transition when given an array of `UIImage` objects.**\n\n![image](\u003chttps://raw.githubusercontent.com/jberlana/JBKenBurns/master/demo.gif\u003e)\n\nTo use it, you simply need an instance of `JBKenBurnsView` and call this method to start the action:\n\n``` objc\n[self.kenView animateWithImages:myImages\n                 transitionDuration:6\n                       initialDelay:0\n                               loop:YES\n                        isLandscape:YES];\n```\n\n## Installation\n\nI recommend use [CocoaPods](http://cocoapods.org) to install JBKenBurnsView. Simply add the following line to your `Podfile`:\n\n#### Podfile\n\n```ruby\npod 'JBKenBurnsView'\n```\n\nBut you can also just drop `JBKenBurnsView.m` and `JBKenBurnsView.h` in your project.\n\n## Documentation\n\nThe project is documented using AppleDocs syntax. But this is a summary:\n\n#### Start the slideshow\nYou can start an animation using an `NSArray` of `UIImage` or `NSString` with the paths to the images calling:\n\n``` objc\n- (void)animateWithImages:(NSArray *)images\n       transitionDuration:(float)time\n             initialDelay:(float)delay\n                     loop:(BOOL)isLoop\n              isLandscape:(BOOL)isLandscape;\n```\nor \n\n``` objc\n- (void)animateWithImagePaths:(NSArray *)imagePaths\n           transitionDuration:(float)time\n                 initialDelay:(float)delay\n                         loop:(BOOL)isLoop\n                  isLandscape:(BOOL)isLandscape;\n```\n\n1. `images:` NSArray of UIImages.\n2. `time:`  Time in seconds for the transition between images.\n3. `delay:`  Time in seconds until the transition should start.\n4. `isLoop:`  YES if the animation should start again when ended.\n5. `isLandscape:`  If YES optimized to show in Landscape mode.\n\n#### Stop the animation\nWhen the transition has started you can stop the animation calling:\n\n`- (void)stopAnimation;`\n\n#### Add new images to the animation\nOr add new images to the array of images in the slide show with:\n\n`- (void)addImage:(UIImage *)image;`\n\n#### KenBurnsViewDelegate\nThere is a protocol that notifies to the delegate when an image changes or the slideshow ended.\n\n``` objc\n@protocol KenBurnsViewDelegate \u003cNSObject\u003e\n\n@optional\n- (void)kenBurns:(JBKenBurnsView *)kenBurns didShowImage:(UIImage *)image atIndex:(NSUInteger)index;\n- (void)kenBurns:(JBKenBurnsView *)kenBurns didFinishAllImages:(NSArray *)images;\n\n@end\n```\n\n## TODO\n\n* Need to allow device rotation.\n* Improvements on image transition effects.\n\n## Demo\n\nBuild and run the `KenBurnsDemo` project in Xcode to see `JBKenBurnsView` in action.\n\n## Swift version\n\n[@gatada](https://github.com/gatada) wrote a Swift version of `JBKenBurnsView` that you can find [here](https://github.com/Gatada/JBKenBurnsView).\n\n\n## Communication\n\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\nThanks a lot to all the people that have collaborated on this library:\n\n- Peter Steinberger [@steipete](https://github.com/steipete)\n- Orta [@orta](https://github.com/orta)\n- Almas Adilbek [@mixdesign](https://github.com/mixdesign)\n- Boska [@boska](https://github.com/boska)\n- Alec Gorge [@alecgorge](https://github.com/alecgorge)\n- [@scgpilot](https://github.com/scgpilot)\n- [@michaelcho](https://github.com/michaelcho)\n- [@mystersu](https://github.com/mystersu)\n\n## Contact\n\nJavier Berlana\n\n- http://github.com/jberlana\n- http://twitter.com/jberlana\n- jberlana@gmail.com\n\n## License\n\nJBKenBurnsView is available under the MIT license. See the LICENSE file for more info.\n\n--\n###[SweetBits](http://www.sweetbits.es/ \"SweetBits\"), welcome to the candy factory.###\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjberlana%2FJBKenBurns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjberlana%2FJBKenBurns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjberlana%2FJBKenBurns/lists"}