{"id":2327,"url":"https://github.com/carleihar/JRMFloatingAnimation","last_synced_at":"2025-08-02T23:33:00.439Z","repository":{"id":56916422,"uuid":"53355077","full_name":"carleihar/JRMFloatingAnimation","owner":"carleihar","description":"An Objective-C animation library used to create floating image views.","archived":false,"fork":false,"pushed_at":"2017-10-02T18:10:55.000Z","size":1153,"stargazers_count":233,"open_issues_count":3,"forks_count":30,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-01T03:41:10.294Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carleihar.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":"2016-03-07T20:02:52.000Z","updated_at":"2024-01-20T18:36:34.000Z","dependencies_parsed_at":"2022-08-21T03:50:29.440Z","dependency_job_id":null,"html_url":"https://github.com/carleihar/JRMFloatingAnimation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carleihar%2FJRMFloatingAnimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carleihar%2FJRMFloatingAnimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carleihar%2FJRMFloatingAnimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carleihar%2FJRMFloatingAnimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carleihar","download_url":"https://codeload.github.com/carleihar/JRMFloatingAnimation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503182,"owners_count":17930529,"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.970Z","updated_at":"2024-12-06T17:30:59.543Z","avatar_url":"https://github.com/carleihar.png","language":"Objective-C","funding_links":[],"categories":["UI","Animation"],"sub_categories":["Animation","Other free courses"],"readme":"# JRMFloatingAnimation\n\n[![CI Status](http://img.shields.io/travis/Caroline Harrison/JRMFloatingAnimation.svg?style=flat)](https://travis-ci.org/Caroline Harrison/JRMFloatingAnimation)\n[![Version](https://img.shields.io/cocoapods/v/JRMFloatingAnimation.svg?style=flat)](http://cocoapods.org/pods/JRMFloatingAnimation)\n[![License](https://img.shields.io/cocoapods/l/JRMFloatingAnimation.svg?style=flat)](http://cocoapods.org/pods/JRMFloatingAnimation)\n[![Platform](https://img.shields.io/cocoapods/p/JRMFloatingAnimation.svg?style=flat)](http://cocoapods.org/pods/JRMFloatingAnimation)\n\n## About\n\nJRMFloatingAnimation is an ObjC library used to create floating image views:\n\n![Bubbles](http://i.imgur.com/qK2cqsA.gif) ![Sax](http://i.imgur.com/8NPeUXq.gif)\n\n![Balloons](http://i.imgur.com/0yiav9V.gif) ![Tractor](http://i.imgur.com/2BOmIcQ.gif)\n\n## Usage\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\nTo create the animation view:\n\n\tself.floatingView = [[JRMFloatingAnimationView alloc] initWithStartingPoint:self.view.center];\n\t[self.floatingView addImage:[UIImage imageName:@\"myImage\"]];\n\t[self.view addSubview:self.floatingView];\n\nTo animate the view:\n\n\t[self.floatingView animate];\n\nYou can add as many images to your view as you want, and they will be used randomly. Note that the images should be square.\n\nThere are a variety of different settings you can add to your animation view.\n\n* `startingPointWidth` - Varies the x of the starting point, with the starting point y being the middle. default is 0.\n* `maxAnimationHeight` - The maximum height that the animation may go. Default is the distance from the top of the frame to the starting point y value.\n* `minAnimationHeight` - The minimum height that the animation may go. If this is larger than the maxAnimationHeight, they will swap. Default is 1/3 the maxAnimationHeight .\n* `animationWidth` - The maximum \"width\" of the bezier path's control points fro the object's starting point. Changing this may give you unexpected results. Defaults: \n\t* `JRMFloatingShape`: The object's size * 2.\n\t* `JRMFloatingShapeCurveLeft`: The distance between the starting point x and the let edge of the frame.\n\t* `JRMFloatingShapeCurveRight`: The distance between the starting point x and the right edge of the frame.\n\t* `JRMFloatingShapeTriangleUp`: The width of the frame.\n* `pop`: Gives the impression of the images \"popping\" before they are removed from the view. Default NO.\n* `maxFloatObjectSize`: The maximum size a floating object can be. Default is 20.\n* `minFloatObjectSize`: The minimum size a floating object can be. If the minFloatObjectSize \u003c maxFloatObjectSize, both sizes become the minFloatObjectSize. Default is 10.\n* `floatingShape`: The \"shape\" that the animation can take. Default is JRMFloatingShapeStraight.\n\t* `JRMFloatingShapeTriangleUp` - Floats up in a cone shape from the starting point.\n\t* `JRMFloatingShapeStraight` - Floats straight up from the starting point.\n\t* `JRMFloatingShapeCurveLeft` - Floats up and curves to the left.\n\t* `JRMFloatingShapeCurveRight` - Floats up and curves to the right.\n* `fadeOut`: If the floating object's alpha should fade out before disappearing from the view. Default NO.\n* `varyAlpha`: If the floating object's alpahs should vary (to give a more randomized look). Default NO.\n* `animationDuration`: The speed of the animation. Default 2.\n* `removeOnCompletion`: If the floating object should be removed from the superview when the animation is finished. Default YES.\n* `imageViewAnimationCompleted`: A completion block to call whenever an image view is finished animating. It will return the image view. (See the JRMDemoBalloonViewController.m file for an example.)\n\n## Installation\n\n#### CocoaPods\nJRMFloatingAnimation is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"JRMFloatingAnimation\"\n```\n\n#### Manually\n1. Download and drop ```/Pod/Classes```folder in your project.  \n2. Congratulations! \n\n## Author\n\nCaroline Harrison, caroline@jackrabbitmobile.com\n\n## License\n\nJRMFloatingAnimation is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarleihar%2FJRMFloatingAnimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarleihar%2FJRMFloatingAnimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarleihar%2FJRMFloatingAnimation/lists"}