{"id":32315276,"url":"https://github.com/lotus-ios/lotus","last_synced_at":"2026-02-22T01:39:19.671Z","repository":{"id":56920061,"uuid":"201916873","full_name":"lotus-ios/lotus","owner":"lotus-ios","description":"A Swift animation DSL for animating layers with help of CoreAnimation","archived":false,"fork":false,"pushed_at":"2020-02-24T06:51:55.000Z","size":4968,"stargazers_count":15,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2026-01-14T10:36:07.116Z","etag":null,"topics":["cocoapods","coreanimation","ios","layer-animation","library","swift"],"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/lotus-ios.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-08-12T11:26:19.000Z","updated_at":"2021-08-13T18:30:48.000Z","dependencies_parsed_at":"2022-08-20T21:50:20.702Z","dependency_job_id":null,"html_url":"https://github.com/lotus-ios/lotus","commit_stats":null,"previous_names":["vkondrashkov/lotus"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lotus-ios/lotus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotus-ios%2Flotus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotus-ios%2Flotus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotus-ios%2Flotus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotus-ios%2Flotus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lotus-ios","download_url":"https://codeload.github.com/lotus-ios/lotus/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotus-ios%2Flotus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cocoapods","coreanimation","ios","layer-animation","library","swift"],"created_at":"2025-10-23T10:45:12.852Z","updated_at":"2026-02-22T01:39:19.665Z","avatar_url":"https://github.com/lotus-ios.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lotus\n\n![Language](https://img.shields.io/badge/swift-5-orange.svg)\n[![Build Status](https://travis-ci.org/lotus-ios/lotus.svg?branch=develop)](https://travis-ci.org/lotus-ios/lotus)\n[![codecov](https://codecov.io/gh/lotus-ios/lotus/branch/develop/graph/badge.svg)](https://codecov.io/gh/lotus-ios/lotus)\n[![Version](https://img.shields.io/cocoapods/v/Lotus.svg?style=flat)](http://cocoapods.org/pods/Lotus)\n[![License](https://img.shields.io/cocoapods/l/Lotus.svg?style=flat)](https://github.com/lotus-ios/lotus/blob/develop/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/Lotus.svg?style=flat)](http://cocoapods.org/pods/Lotus)\n\n**Lotus** – powerful nano framework that helps implement layer animation with easy syntax. This DSL relieves you from routine code of making animations via CoreAnimation.\n\n\u003cimg src=\"Example/Assets/lotus.gif\" alt=\"Lotus\" width=\"200\"/\u003e\n\n```swift\nfor i in 0..\u003c10 {\n    let petalLayer = PetalLayer()\n    petalLayer.position = CGPoint(x: view.frame.width / 2, y: view.frame.height / 2 + 60)\n\n    let direction: CGFloat = i % 2 == 0 ? -1.0 : 1.0\n    let initialRotationDegree = 3.0 * CGFloat(i / 2) * .pi / 180.0\n    let rotateTransform = CGAffineTransform.identity.rotated(by: direction * initialRotationDegree)\n    petalLayer.setAffineTransform(rotateTransform)\n    view.layer.addSublayer(petalLayer)\n\n    let rotationDegree = 12.0 * CGFloat(i / 2) * .pi / 180.0\n    petalLayer.lotus.runAnimation { make in\n        make.opacity.to(0.7).during(0.7).delay(1.0)\n    }.then { make in\n        make.rotation.to(direction * rotationDegree).during(0.6)\n    }.then { make in\n        make.scaling.to(1.2).delay(0.3).during(1.5).ease(.outElastic)\n    }\n}\n```\n\n## Contents\n\n- [Getting started](#getting-started)\n  - [Requirements](#requirements)\n  - [Installing](#installing)\n  - [Usage](#usage)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n- [Authors](#authors)\n- [License](#license)\n\n## Getting started\n\nThese instructions will help you to integrate Lotus into your project.\n\n### Requirements\n\n- Xcode 10.2+\n\n### Installing\n\n#### CocoaPods\n\n1\\. In terminal switch to your repository with project  \n2\\. Specify Lotus in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'Lotus'\nend\n```\n\n3\\. Run `pod install` command\n\n### Usage\n\n1\\. Import Lotus into your project\n\n```swift\nimport Lotus\n```\n\n2\\. Create any layer and add to `view`'s hierarchy\n\n```swift\nlet redSquareLayer = CALayer()\nredSquareLayer.frame = CGRect(x: 50, y: 50, width: 100, height: 100)\nview.layer.addSublayer(redSquareLayer)\n```\n\n3\\. Then run any needed animation whenever you need\n\n```swift\nredSquareLayer.lotus.runAnimation { make in\n    make.scaling.to(2.0)\n}\n```\n\n## Documentation\n\nFind out all accessible facilities in [Documentation](https://lotus-ios.github.io/)\n\n## Contributing\n\nIf you found any bug, have great new feature or want to improve documentation – you're welcome! Go to [issue page](https://github.com/lotus-ios/lotus/issues \"Issues\"), choose template, write details and we will answer you as soon as possible.\n\n## Authors\n\n- **Vladislav Kondrashkov** - _Initial work_ - [vkondrashkov](https://github.com/vkondrashkov \"Vladislav Kondrashkov\")\n- **Pavel Kondrashkov** - _Mentor, idea contributor_ - [pkondrashkov](https://github.com/pkondrashkov \"Pavel Kondrashkov\")\n\nSee also the list of [contributors](https://github.com/lotus-ios/lotus/graphs/contributors \"Contributors\") who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/lotus-ios/lotus/blob/develop/LICENSE \"MIT License\") file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotus-ios%2Flotus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flotus-ios%2Flotus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotus-ios%2Flotus/lists"}