{"id":13518795,"url":"https://github.com/OutSystems/AutoAnimations","last_synced_at":"2025-03-31T11:30:30.862Z","repository":{"id":70207299,"uuid":"46682646","full_name":"OutSystems/AutoAnimations","owner":"OutSystems","description":"Automatically animate all inserted and removed DOM elements","archived":true,"fork":false,"pushed_at":"2018-01-06T11:52:36.000Z","size":15,"stargazers_count":395,"open_issues_count":0,"forks_count":12,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-02T00:32:51.066Z","etag":null,"topics":["snyk-archive"],"latest_commit_sha":null,"homepage":null,"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/OutSystems.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-11-22T22:07:09.000Z","updated_at":"2024-01-30T19:52:12.000Z","dependencies_parsed_at":"2023-03-11T08:15:40.563Z","dependency_job_id":null,"html_url":"https://github.com/OutSystems/AutoAnimations","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/OutSystems%2FAutoAnimations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FAutoAnimations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FAutoAnimations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2FAutoAnimations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutSystems","download_url":"https://codeload.github.com/OutSystems/AutoAnimations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246461380,"owners_count":20781319,"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":["snyk-archive"],"created_at":"2024-08-01T05:01:49.201Z","updated_at":"2025-03-31T11:30:30.607Z","avatar_url":"https://github.com/OutSystems.png","language":"JavaScript","readme":"# AutoAnimations\n_\"It's like auto-tune for web pages\"_\n\nAutomatically animate all inserted and removed DOM elements with good defaults:\n- Slide down/up for elements with display=block \u0026 position=static\n- Fade in/out for all others\n- Elements with existing CSS transitions or animations will be left alone\n- Uses velocity.js to assure smooth 60fps animations even in mobile\n\n\n\u003cimg src=\"http://i.imgur.com/EMN0gPG.gif\" height=200px/\u003e\n\ncompare with http://todomvc.com/examples/react/ (that has no autoanimate)\n\n##USAGE\nJust include this script, and add an animation-duration to your css, e.g. \n\n\u003cpre\u003e* { \n    animation-duration: .2s; \n}\u003c/pre\u003e\n\n####NOTES\n- Elements shown/hidden using the style's display (e.g. jquery's show, hide and toggle) will not be animated.\n- In javascript UI frameworks (e.g. React) it's recommended that this script is run after first render \n- You can add this as the URL of a bookmark to create a bookmarklet to test it in any web page:\n    - \u003cpre\u003ejavascript:(function(){document.styleSheets[0].insertRule(\"* {animation-duration: .2s}\", 0);document.body.appendChild(document.createElement('script')).src='https://rawgit.com/OutSystems/AutoAnimations/master/AutoAnimations.js';})();\u003c/pre\u003e\n- This overrides HTMLElement prototype methods, so it's a huge hack (only a POC) and there might be several side effects. \n\n####EXCEPTIONS\nIf you don't want some element to automatically animate (e.g. external libraries) just set its animation-duration to 0s, e.g. :\n\u003cpre\u003e.SomeCustomComponent, .SomeCustomComponent * {animation-duration: 0s; }  \u003c/pre\u003e\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOutSystems%2FAutoAnimations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOutSystems%2FAutoAnimations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOutSystems%2FAutoAnimations/lists"}