{"id":19856961,"url":"https://github.com/johnvuko/jtslideshadowanimation","last_synced_at":"2025-05-02T02:30:27.422Z","repository":{"id":23339592,"uuid":"26700101","full_name":"johnvuko/JTSlideShadowAnimation","owner":"johnvuko","description":"A shadow animation effect for iOS","archived":false,"fork":false,"pushed_at":"2015-05-30T16:38:21.000Z","size":1745,"stargazers_count":88,"open_issues_count":0,"forks_count":15,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-06T21:02:37.336Z","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/johnvuko.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":"2014-11-16T01:32:58.000Z","updated_at":"2024-06-17T13:17:22.000Z","dependencies_parsed_at":"2022-08-21T16:00:14.901Z","dependency_job_id":null,"html_url":"https://github.com/johnvuko/JTSlideShadowAnimation","commit_stats":null,"previous_names":["johnvuko/jtslideshadowanimation"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTSlideShadowAnimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTSlideShadowAnimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTSlideShadowAnimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTSlideShadowAnimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnvuko","download_url":"https://codeload.github.com/johnvuko/JTSlideShadowAnimation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972408,"owners_count":21673599,"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-12T14:17:04.708Z","updated_at":"2025-05-02T02:30:26.984Z","avatar_url":"https://github.com/johnvuko.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JTSlideShadowAnimation\n\n[![CI Status](http://img.shields.io/travis/jonathantribouharet/JTSlideShadowAnimation.svg)](https://travis-ci.org/jonathantribouharet/JTSlideShadowAnimation)\n![Version](https://img.shields.io/cocoapods/v/JTSlideShadowAnimation.svg)\n![License](https://img.shields.io/cocoapods/l/JTSlideShadowAnimation.svg)\n![Platform](https://img.shields.io/cocoapods/p/JTSlideShadowAnimation.svg)\n\nJTSlideShadowAnimation allow you to reproduce the famous \"slide to unlock effect\" on iOS.\n\n## Installation\n\nWith [CocoaPods](http://cocoapods.org/), add this line to your Podfile.\n\n\tpod 'JTSlideShadowAnimation', '~\u003e 1.0'\n\n## Screenshots\n\n![Example](./Screens/example.gif \"Example View\")\n\n## Usage\n\n### Basic usage\n\nJust import `JTSlideShadowAnimation.h`.\n\n```objective-c\n#import \"JTSlideShadowAnimation.h\"\n\n@interface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet UIButton *animatedView;\n\n@property (strong, nonatomic) JTSlideShadowAnimation *shadowAnimation;\n\n@end\n```\n\nAssign the view you want to animate and start the animation.\n\n```objective-c\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n \n    self.shadowAnimation = [JTSlideShadowAnimation new];\n    self.shadowAnimation.animatedView = self.animatedView;\n}\n\n- (void)viewDidAppear:(BOOL)animated\n{\n    [super viewDidAppear:animated];\n\n    [self.shadowAnimation start];\n}\n```\n\n### Customization\n\nYou can easily customize the animation.\n\n- `shadowBackgroundColor`\n- `shadowForegroundColor`\n- `shadowWidth`\n- `repeatCount`\n- `duration`\n\nExample:\n\n```objective-c\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n \n    self.shadowAnimation = [JTSlideShadowAnimation new];\n    self.shadowAnimation.animatedView = self.animatedView;\n\n    self.shadowAnimation.shadowBackgroundColor = [UIColor colorWithWhite:0. alpha:.3];\n    self.shadowAnimation.shadowForegroundColor = [UIColor blackColor];\n    self.shadowAnimation.shadowWidth = 40.;\n    self.shadowAnimation.repeatCount = 3;\n    self.shadowAnimation.duration = 3.;\n\n    [self.shadowAnimation start];\n}\n```\n\n## Requirements\n\n- iOS 7 or higher\n- Automatic Reference Counting (ARC)\n\n## Known Issues\n\n- Animation stop when the application go in background, you have to restart it manually\n\n## Author\n\n- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))\n\n## License\n\nJTSlideShadowAnimation is released under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjtslideshadowanimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnvuko%2Fjtslideshadowanimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjtslideshadowanimation/lists"}