{"id":15699053,"url":"https://github.com/stevenvachon/jquery.transitionsend","last_synced_at":"2025-05-09T02:15:15.880Z","repository":{"id":12615446,"uuid":"15286580","full_name":"stevenvachon/jquery.transitionsend","owner":"stevenvachon","description":"Execute a callback when ALL css transitions have ended.","archived":false,"fork":false,"pushed_at":"2014-02-20T17:05:12.000Z","size":216,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-09T02:15:08.596Z","etag":null,"topics":["event","jquery","transitions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevenvachon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-18T15:25:58.000Z","updated_at":"2019-08-13T15:32:10.000Z","dependencies_parsed_at":"2022-08-31T00:01:59.913Z","dependency_job_id":null,"html_url":"https://github.com/stevenvachon/jquery.transitionsend","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/stevenvachon%2Fjquery.transitionsend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenvachon%2Fjquery.transitionsend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenvachon%2Fjquery.transitionsend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenvachon%2Fjquery.transitionsend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevenvachon","download_url":"https://codeload.github.com/stevenvachon/jquery.transitionsend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176444,"owners_count":21866143,"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":["event","jquery","transitions"],"created_at":"2024-10-03T19:37:48.716Z","updated_at":"2025-05-09T02:15:15.857Z","avatar_url":"https://github.com/stevenvachon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#jquery.transitionsend\n\n\u003e Execute a callback when *all* CSS transitions have ended.\n\n## Getting Started\n\nThis plugin requires jQuery `~1.7.0` or Zepto `~1.1.2`\n\nThe `transitionsend` event is similar to the standard `transitionend` event, except that it is **only called once**—instead of once *per property*. This is especially useful for **advanced animation** where you are transitioning more than one property on any given element.\n\nThis plugin has been built to work with jQuery's [`on()`](http://api.jquery.com/on/), [`one()`](http://api.jquery.com/one/) and [`off()`](http://api.jquery.com/off/) functions instead of\na unique API. This **allows for abstraction**.\n\n- - -\nThe event will be dispatched immediately without delay in these situations:\n* Elements with no CSS transitions applied\n* Browsers that do not support CSS transitions\n\n- - -\n*Note*: Current technology prohibits the ability to detect when a transition has been cancelled (by means of CSS or other). You will have to keep track of such things yourself.\n\n## Usage\n### Overview\nIt is recommended that you use `jQuery.one()` instead of `jQuery.on()` because the callback will only be\ntriggered once.\n```js\n$(selector).addClass(\"cool-transition\");\n\n$(selector).one(\"transitionsend\", function()\n{\n\t// do something here\n});\n\n// Cancel event\n$(selector).off(\"transitionsend\");\n```\n\n### Reflow\nA `reflow` function is also included. It \"relayouts\" elements, preparing them for an immediate repaint (or \"rerender\"). It comes in handy when adding a transition `className` to your newly created element and actually having the transition play.\n```javascript\n$(\"body\").html('\u003cdiv id=\"something\"/\u003e');\n$(\"#something\").reflow();\n$(\"#something\").addClass(\"cool-transition\");\n// it animates!\n```\n\n## Release History\n* 0.2.0 added AMD support\n* 0.1.2 added Zepto support\n* 0.1.1 renamed `repaint` to `reflow`\n* 0.1.0 initial release\n\n---\n\n[![Analytics](https://ga-beacon.appspot.com/UA-3614308-9/stevenvachon/jquery.transitionsend)](https://github.com/igrigorik/ga-beacon \"Google Analytics\") [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/stevenvachon/jquery.transitionsend/trend.png)](https://bitdeli.com/free)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenvachon%2Fjquery.transitionsend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenvachon%2Fjquery.transitionsend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenvachon%2Fjquery.transitionsend/lists"}