{"id":18706168,"url":"https://github.com/bendc/animate","last_synced_at":"2025-04-09T15:09:09.816Z","repository":{"id":26404784,"uuid":"29854732","full_name":"bendc/animate","owner":"bendc","description":"Simple animation library","archived":false,"fork":false,"pushed_at":"2015-04-02T05:39:01.000Z","size":165,"stargazers_count":423,"open_issues_count":3,"forks_count":23,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-09T15:09:05.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bendc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-26T09:47:14.000Z","updated_at":"2025-04-02T02:28:15.000Z","dependencies_parsed_at":"2022-07-27T20:29:32.051Z","dependency_job_id":null,"html_url":"https://github.com/bendc/animate","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/bendc%2Fanimate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendc%2Fanimate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendc%2Fanimate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendc%2Fanimate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendc","download_url":"https://codeload.github.com/bendc/animate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055282,"owners_count":21040157,"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-11-07T12:13:07.435Z","updated_at":"2025-04-09T15:09:09.796Z","avatar_url":"https://github.com/bendc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Animate\n\n`animate.js` is a tiny library that helps you write smooth CSS-powered animations in JavaScript. See\na quick demo of 500 elements animating at\n[playground.deaxon.com/js/animate](http://playground.deaxon.com/js/animate/).\n\n# Usage\n\nInclude `animate.min.js` in your page:\n```html\n\u003cscript src=animate.min.js\u003e\u003c/script\u003e\n```\n\nStart animating things:\n```javascript\nanimate({\n  el: \"div\",\n  translateX: 100,\n  opacity: .5,\n  duration: 500,\n  complete: function() { alert(\"Done!\") }\n});\n```\n\n# API\n\n`animate` requires a config object accepting the following options:\n\n## el\nThe elements you want to animate. `el` can be a:\n\n* CSS selector\n* DOM element\n* array of DOM elements\n* NodeList or HTMLCollection\n\n## duration\n[Optional] The duration of your animation in milliseconds. Default: 400. `ms` will be added if you don't specify a\nunit.\n\n## delay\n[Optional] The delay before your animation starts in milliseconds. Default: 0. `ms` will be added if you don't specify a\nunit.\n\n## easing\n[Optional] The animation curve (CSS keyword or cubic-bezier). Default: ease.\n\n## complete\n[Optional] A function called at the end of the animation. Inside the function, `this` refers to the\nDOM element that has finished animating.\n\n## animatable properties\n* opacity\n* translateX\n* translateY\n* translateZ\n* scaleX\n* scaleY\n* scaleZ\n* rotateX\n* rotateY\n* rotateZ\n* skewX\n* skewY\n* perspective\n\nYou can also use the shortcut transform functions `translate`, `scale` and `rotate` when the same\nvalue should be applied to X and Y:\n\n```javascript\ntranslate: 100 // same as translateX: 100, translateY: 100\n```\n\nIf you don't specify a unit, `px` will be added to `translate`-related and `perspective` functions and `deg`\nto `rotate`-related functions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendc%2Fanimate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendc%2Fanimate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendc%2Fanimate/lists"}