{"id":16452047,"url":"https://github.com/raulriera/animator","last_synced_at":"2025-03-21T05:30:38.486Z","repository":{"id":6449383,"uuid":"7688905","full_name":"raulriera/Animator","owner":"raulriera","description":"Animator helper class for Titanium Appcelerator.","archived":false,"fork":false,"pushed_at":"2015-03-30T14:27:29.000Z","size":198,"stargazers_count":58,"open_issues_count":1,"forks_count":10,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-17T21:45:21.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raulriera.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":"2013-01-18T15:28:59.000Z","updated_at":"2024-01-04T06:46:09.000Z","dependencies_parsed_at":"2022-09-03T01:20:49.534Z","dependency_job_id":null,"html_url":"https://github.com/raulriera/Animator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulriera%2FAnimator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulriera%2FAnimator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulriera%2FAnimator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulriera%2FAnimator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raulriera","download_url":"https://codeload.github.com/raulriera/Animator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745641,"owners_count":20503043,"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-10-11T10:11:10.796Z","updated_at":"2025-03-21T05:30:38.092Z","avatar_url":"https://github.com/raulriera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Animator:\n**Animator** is a helper class to ease your mind when working with animations on Titanium.\n\n##Usage:\nIn your app.js (or elsewhere), call:\n\n```javascript\n// Load the animator helper\nvar Animator = require(\"Animator\");\n```\n\nNow that you have the module initialised you can call one of these animation functions:\n\n* **scale**: increases or decreases the size of the view\n* **rotate**: rotates the view\n* **fade**: changes the opacity of the view\n* **flip**: flips the view (horizontally if nothing is passed)\n* **moveTo**: moves the view in the X and Y coordinates\n* **sizeTo**: resizing and positioning the view through width, height, bottom, top, left and right\n* **backgroundColor**: changes the backgroundColor of the view with fading effect\n* **shake**: shake a view like the code dots on the iOS passcode screen\n\nLet's for example scale a window to 80% of its size\n\n```javascript\n// Load the animator helper\nnew Animator().scale({ view: window, value: 0.8, duration: 500 }); \n```\n\n##Helpers inside the helper\n\nQueuing animations can be a pain. That is why you can also find two specials methods called:\n\n* **sequence**: uses an array of animations and queues them one after the other\n* **parallel**: uses an array of animations and runs them all at once\n\nLet's do a quick example\n\n```javascript\n// do a bunch of animations one after the other\t\nnew Animator().sequence([\n{ \n\ttype: \"scale\", \n\tview: pink, \n\tvalue: 1.5, \n\tduration: 500 }, \n{ \n\ttype: \"rotate\", \n\tview: pink, \n\tvalue: 57, \n\tduration: 500 } ,\n{ \n\ttype: \"fade\", \n\tview: blue, \n\tvalue: 0.8, \n\tduration: 500 } ,\n{ \n\ttype: \"moveTo\", \n\tview: pink, \n\tvalue: {x: 0, y: 200 }, \n\tduration: 500 }, \n]);\n```\n\nWithout the **sequence** method, achieving the same result without the previous code will be a nesting nightmare.\n\n##More examples\nFor more information check out the [examples.js](https://github.com/raulriera/Animator/blob/master/examples.js) file. Or browse around the [Animator.js](https://github.com/raulriera/Animator/blob/master/Animator.js) file. \n\n##About:\nCreated by Raul Riera, [@raulriera](http://twitter.com/raulriera)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulriera%2Fanimator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraulriera%2Fanimator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulriera%2Fanimator/lists"}