{"id":18388054,"url":"https://github.com/methodgrab/animation-events","last_synced_at":"2025-10-29T04:21:19.485Z","repository":{"id":9419657,"uuid":"62057030","full_name":"MethodGrab/animation-events","owner":"MethodGrab","description":"Find the (prefixed) JavaScript event names for CSS animations \u0026 transitions supported by the current browser","archived":false,"fork":false,"pushed_at":"2022-12-06T01:27:32.000Z","size":1877,"stargazers_count":3,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T15:22:01.974Z","etag":null,"topics":["css-animations"],"latest_commit_sha":null,"homepage":null,"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/MethodGrab.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":"2016-06-27T13:10:39.000Z","updated_at":"2025-02-20T23:31:05.000Z","dependencies_parsed_at":"2023-01-11T20:12:09.205Z","dependency_job_id":null,"html_url":"https://github.com/MethodGrab/animation-events","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/MethodGrab/animation-events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fanimation-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fanimation-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fanimation-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fanimation-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MethodGrab","download_url":"https://codeload.github.com/MethodGrab/animation-events/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fanimation-events/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274929091,"owners_count":25375708,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css-animations"],"created_at":"2024-11-06T01:30:35.045Z","updated_at":"2025-10-29T04:21:14.437Z","avatar_url":"https://github.com/MethodGrab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS Animation Event Names [![Build Status](https://travis-ci.org/MethodGrab/animation-events.svg?branch=master)](https://travis-ci.org/MethodGrab/animation-events) [![npm](https://img.shields.io/npm/v/@methodgrab/animation-events.svg)](https://www.npmjs.com/package/@methodgrab/animation-events)\n\u003e Find the (prefixed) JavaScript event names for CSS animations \u0026 transitions supported by the current browser.\n\n\n## Install\n```bash\nnpm install --save @methodgrab/animation-events\n```\n\n\n## Example:\n```js\nconst animEvents = require( '@methodgrab/animation-events' );\n\n// get \u0026 cache the prefixed event names\nconst transitionEnd      = animEvents.transitionEndEventName();\nconst animationEnd       = animEvents.animationEndEventName();\nconst animationIteration = animEvents.animationIterationEventName();\n\n$( '.el' )\n\t.addClass( 'is-transitioning' )\n\t.one( transitionEnd, (  ) =\u003e {\n\t\tconsole.log( 'Transition complete!' );\n\t\t$( '.el' ).removeClass( 'is-transitioning' );\n\t};\n```\n\n\n## API\n\n### `transitionEndEventName()`\n→ `string`  \nFind the (prefixed) [`transitionend`](https://developer.mozilla.org/en-US/docs/Web/Events/transitionend) event name.  \nThe `transitionend` event is fired when a CSS transition has completed.\n\n\n### `animationEndEventName()`\n→ `string`  \nFind the (prefixed) [`animationend`](https://developer.mozilla.org/en-US/docs/Web/Events/animationend) event name.  \nThe `animationend` event is fired when a CSS animation has completed.\n\n\n### `animationIterationEventName()`\n→ `string`  \nFind the (prefixed) [`animationiteration`](https://developer.mozilla.org/en-US/docs/Web/Events/animationiteration) event name.  \nThe `animationiteration` event is fired when **an iteration** of an animation ends.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmethodgrab%2Fanimation-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmethodgrab%2Fanimation-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmethodgrab%2Fanimation-events/lists"}