{"id":2298,"url":"https://github.com/daltoniam/DCAnimationKit","last_synced_at":"2025-08-02T23:32:55.005Z","repository":{"id":15255472,"uuid":"17984544","full_name":"daltoniam/DCAnimationKit","owner":"daltoniam","description":"A collection of animations for iOS. Simple, just add water animations.","archived":false,"fork":false,"pushed_at":"2016-02-09T09:42:42.000Z","size":726,"stargazers_count":802,"open_issues_count":1,"forks_count":89,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-11-29T13:58:02.198Z","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":"SaltPepp/Economy","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daltoniam.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-03-21T15:37:15.000Z","updated_at":"2024-11-18T09:28:22.000Z","dependencies_parsed_at":"2022-08-03T07:30:53.145Z","dependency_job_id":null,"html_url":"https://github.com/daltoniam/DCAnimationKit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltoniam%2FDCAnimationKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltoniam%2FDCAnimationKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltoniam%2FDCAnimationKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltoniam%2FDCAnimationKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daltoniam","download_url":"https://codeload.github.com/daltoniam/DCAnimationKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503176,"owners_count":17930527,"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-01-05T20:16:10.188Z","updated_at":"2024-12-06T17:30:58.913Z","avatar_url":"https://github.com/daltoniam.png","language":"Objective-C","funding_links":[],"categories":["UI","Animation","Objective-C","UI Effects"],"sub_categories":["Animation","Other free courses"],"readme":"DCAnimationKit\n==============\n\nA collection of animations for iOS Simply, just add water! DCAnimationKit is a category on UIView to make animations easy to perform.\n\n## Examples ##\n\nAll our examples will use this as a base.\n```objc\nself.moveLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 85, 200, 100)];\nself.moveLabel.backgroundColor = [UIColor clearColor];\nself.moveLabel.text = NSLocalizedString(@\"Animate!\", nil);\nself.moveLabel.font = [UIFont systemFontOfSize:36];\n[self.moveLabel sizeToFit];\n[self.view addSubview:self.moveLabel];\n\nself.moveView = [[UIView alloc] initWithFrame:CGRectMake(40, 165, 200, 100)];\nself.moveView.backgroundColor = [UIColor orangeColor];\n[self.view addSubview:self.moveView];\n```\n\n## Attention getters\n\n### Tada\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/tada.gif)\n\nour method to run tada.\n```objc\n[self.moveView tada:NULL];\n[self.moveLabel tada:NULL];\n```\n\n### Bounce\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/bounce.gif)\n\nour method to run bounce.\n```objc\n[self.moveView bounce:NULL];\n[self.moveLabel bounce:NULL];\n```\n\n### Pulse\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/pulse.gif)\n\nour method to run pulse.\n```objc\n[self.moveView pulse:NULL];\n[self.moveLabel pulse:NULL];\n```\n\n### Shake\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/shake.gif)\n\nour method to run shake.\n```objc\n[self.moveView shake:NULL];\n[self.moveLabel shake:NULL];\n```\n\n### Swing\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/swing.gif)\n\nour method to run swing.\n```objc\n[self.moveView swing:NULL];\n[self.moveLabel swing:NULL];\n```\n\n## Intros\n\nIntros have a slight difference from the base code. We simple remove these 2 lines:\n\n```objc\n//[self.view addSubview:self.moveLabel];\n//[self.view addSubview:self.moveView];\n```\nThis lines will be added to the view once they snap in.\n\n### Snap\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/snapin.gif)\n\nour method to run the snap in.\n```objc\n[self.moveLabel snapIntoView:self.view direction:DCAnimationDirectionTop];\n[self.moveView snapIntoView:self.view direction:DCAnimationDirectionLeft];\n```\n\n### Bounce\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/bouncein.gif)\n\nour method to run the bounce in.\n```objc\n[self.moveLabel bounceIntoView:self.view direction:DCAnimationDirectionTop];\n[self.moveView bounceIntoView:self.view direction:DCAnimationDirectionLeft];\n```\n\n### Expand\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/expandin.gif)\n\nour method to run the expand.\n```objc\n[self.moveLabel expandIntoView:self.view finished:NULL];\n[self.moveView expandIntoView:self.view finished:NULL];\n```\n\n## Outros\n\n### Compress\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/compressin.gif)\n\nour method to run the compress.\n```objc\n[self.moveLabel expandIntoView:NULL];\n[self.moveView expandIntoView:NULL];\n```\n\n### Hinge\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/hinge.gif)\n\nour method to run the hinge.\n```objc\n[self.moveLabel hinge:NULL];\n[self.moveView hinge:NULL];\n```\n\n### Drop\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/drop.gif)\n\nour method to run the drop.\n```objc\n[self.moveLabel drop:NULL];\n[self.moveView drop:NULL];\n```\n## General transitions\n\nTo round off our fantastic animations, DCAnimationKit also simplifies doing ordinary frame manipulation.\n\n```objc\nUIView *baseView = [[UIView alloc] initWithFrame:CGRectMake(40, 85, 50, 50)];\nbaseView.backgroundColor = [UIColor grayColor];\n[self.view addSubview:baseView];\n\nself.moveView = [[UIView alloc] initWithFrame:baseView.frame];\nself.moveView.backgroundColor = [UIColor redColor];\n[self.view addSubview:self.moveView];\n```\n\n### Move\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/slide.gif)\n\nour code to move around.\n```objc\nCGFloat distance = 80;\n__weak id weakSelf = self.moveView;\n[weakSelf moveX:distance finished:^{\n    [weakSelf moveY:distance finished:^{\n        [weakSelf moveX:-distance finished:^{\n            [weakSelf moveY:-distance finished:^{\n\n            }];\n        }];\n    }];\n}];\n```\nWe can also set the view's origin to a specific value as well.\n```objc\n__weak id weakSelf = self.moveView;\n[weakSelf setX:200 finished:^{\n    [weakSelf setY:200 finished:^{\n        [weakSelf setX:40 finished:^{\n            [weakSelf setY:85 finished:^{\n\n            }];\n        }];\n    }];\n}];\n```\n\nWe can even slide to a specific point (there is a move as well!).\n\n```objc\n[self.moveView movePoint:CGPointMake(100, 100) finished:NULL];\n```\n### Rotation\n\n![alt tag](https://raw.github.com/daltoniam/DCAnimationKit/master/gifs/rotate.gif)\n\nour code to rotate (there is a move rotation as well).\n```objc\n__weak id weakSelf = self.moveView;\n[weakSelf setRotation:45 duration:.35 finished:^{\n    [weakSelf setRotation:0 duration:.35 finished:^{\n\n    }];\n}];\n```\n\n\n## Install ##\n\nThe recommended approach for installing DCAnimationKit is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.\n\nvia CocoaPods\n\nInstall CocoaPods if not already available:\n\n\t$ [sudo] gem install cocoapods\n\t$ pod setup\nChange to the directory of your Xcode project, and Create and Edit your Podfile and add DCAnimationKit:\n\n\t$ cd /path/to/MyProject\n\t$ touch Podfile\n\t$ edit Podfile\n\tplatform :ios, '7.0'\n\tpod 'DCAnimationKit'\n\nInstall into your project:\n\n\t$ pod install\n\nOpen your project in Xcode from the .xcworkspace file (not the usual project file)\n\n## Requirements ##\n\nDCAnimationKit requires at least iOS 7 or above.\n\n\n## License ##\n\nDCAnimationKit is license under the Apache License.\n\n## Contact ##\n\n### Dalton Cherry ###\n* https://github.com/daltoniam\n* http://twitter.com/daltoniam\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaltoniam%2FDCAnimationKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaltoniam%2FDCAnimationKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaltoniam%2FDCAnimationKit/lists"}