{"id":20087991,"url":"https://github.com/lixiang1994/spring","last_synced_at":"2025-08-31T03:33:40.743Z","repository":{"id":62455925,"uuid":"178507991","full_name":"lixiang1994/Spring","owner":"lixiang1994","description":"An elegant animation written in swift","archived":false,"fork":false,"pushed_at":"2019-04-27T11:35:56.000Z","size":76,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T03:27:40.689Z","etag":null,"topics":["animation","calayer","chain","ios","spring","swift","swift5","uiview"],"latest_commit_sha":null,"homepage":"","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/lixiang1994.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":"2019-03-30T03:45:52.000Z","updated_at":"2024-02-08T01:27:53.000Z","dependencies_parsed_at":"2022-11-02T00:01:25.546Z","dependency_job_id":null,"html_url":"https://github.com/lixiang1994/Spring","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/lixiang1994/Spring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixiang1994%2FSpring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixiang1994%2FSpring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixiang1994%2FSpring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixiang1994%2FSpring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lixiang1994","download_url":"https://codeload.github.com/lixiang1994/Spring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixiang1994%2FSpring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272934977,"owners_count":25017978,"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-08-31T02:00:09.071Z","response_time":79,"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":["animation","calayer","chain","ios","spring","swift","swift5","uiview"],"created_at":"2024-11-13T16:11:00.480Z","updated_at":"2025-08-31T03:33:40.723Z","avatar_url":"https://github.com/lixiang1994.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Spring - Animation\n\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n\n## [天朝子民](README_CN.md)\n\n## Features\n\n- [x] Chained grammar.\n- [x] No inheritance required.\n- [x] Lightweight expansion.\n- [x] Based on UIViewAnimation.\n- [x] No code intrusion.\n\n\n## Installation\n\n**CocoaPods - Podfile**\n\n```ruby\nsource 'https://github.com/lixiang1994/Specs'\n\npod 'Spring'\n```\n\n**Carthage - Cartfile**\n\n```ruby\ngithub \"lixiang1994/Spring\"\n```\n\n## Usage\n\nFirst make sure to import the framework:\n\n```swift\nimport SpringAnimation\n```\n\nHere are some usage examples. All devices are also available as simulators:\n\n### Chaining\n\n```swift\n animationView.spring\n  .opacity(0.1)\n  .scale(0.8, 0.8)\n  .duration(2)\n  .curve(.easeOutQuad)\n  .animate()\n```\n\n### Functions\n```\nanimate() { ... }\n```\n\n### Animation\n```\nshake\npop\nmorph\nsqueeze\nwobble\nswing\nflipX\nflipY\nfall\nsqueezeLeft\nsqueezeRight\nsqueezeDown\nsqueezeUp\nslideLeft\nslideRight\nslideDown\nslideUp\nfadeIn\nfadeOut\nfadeInLeft\nfadeInRight\nfadeInDown\nfadeInUp\nzoomIn\nzoomOut\nflash\n```\n### Curve\n```\nspring\nlinear\neaseIn\neaseOut\neaseInOut\n```\n\n### Properties\n```\nforce\nduration\ndelay\ndamping\nvelocity\nrepeatCount\nscale\nx\ny\nrotate\n```\n\n\\* Not all properties work together.\n\n## Reference\n\n\u003e [Spring](https://github.com/MengTo/Spring)\n\n## Contributing\n\nIf you have the need for a specific feature that you want implemented or if you experienced a bug, please open an issue.\nIf you extended the functionality of Spring yourself and want others to use it too, please submit a pull request.\n\n\n## License\n\nSpring is under MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flixiang1994%2Fspring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flixiang1994%2Fspring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flixiang1994%2Fspring/lists"}