{"id":13835389,"url":"https://github.com/adajuly/AniX","last_synced_at":"2025-07-10T07:31:50.408Z","repository":{"id":37483947,"uuid":"90921951","full_name":"adajuly/AniX","owner":"adajuly","description":"🐿 Super easy and lightweight(\u003c3kb) JavaScript animation library","archived":false,"fork":false,"pushed_at":"2022-03-10T14:37:09.000Z","size":2103,"stargazers_count":259,"open_issues_count":0,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-11T14:36:39.949Z","etag":null,"topics":["3kb","animation-libraries","css-transitions","jquery-animation","motion","transition"],"latest_commit_sha":null,"homepage":"https://adajuly.github.io/AniX/","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/adajuly.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":"2017-05-11T01:02:19.000Z","updated_at":"2025-04-29T16:40:09.000Z","dependencies_parsed_at":"2022-09-14T23:31:37.697Z","dependency_job_id":null,"html_url":"https://github.com/adajuly/AniX","commit_stats":null,"previous_names":["aliaszz/anix"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/adajuly/AniX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adajuly%2FAniX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adajuly%2FAniX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adajuly%2FAniX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adajuly%2FAniX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adajuly","download_url":"https://codeload.github.com/adajuly/AniX/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adajuly%2FAniX/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263548651,"owners_count":23478808,"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":["3kb","animation-libraries","css-transitions","jquery-animation","motion","transition"],"created_at":"2024-08-04T14:01:00.929Z","updated_at":"2025-07-10T07:31:50.371Z","avatar_url":"https://github.com/adajuly.png","language":"JavaScript","funding_links":[],"categories":["目录"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/adajuly/AniX/blob/master/logo/logo.png?raw=true\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e A super easy and lightweight javascript animation library. \u003c/p\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href='https://www.npmjs.com/package/anix'\u003e\n    \u003cimg src='https://badge.fury.io/js/anix.svg' alt='npm version' height='18'\u003e\n  \u003c/a\u003e\n  \u003ca href='#'\u003e\n    \u003cimg src='https://img.shields.io/github/last-commit/adajuly/Anix.svg' alt='last commit' height='18'\u003e\n  \u003c/a\u003e\n  \u003ca href='https://github.com/adajuly/Anix/issues'\u003e\n    \u003cimg src='https://img.shields.io/github/issues/adajuly/Anix.svg' alt='issues open' height='18'\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/adajuly/AniX/pulls\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"PRs\"/\u003e\n  \u003c/a\u003e\n  \u003ca href='#'\u003e\n    \u003cimg src='https://img.shields.io/npm/l/anix.svg' alt='license:MIT' height='18'\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## Overview\n\nAniX is a lightweight and easy-to-use animation library with excellent performance and good compatibility for modern browsers.\n\nIt uses the native **css transition** attribute, better than js simulation animation performance. And you can also enable hardware acceleration with it.\n\nAniX only less than **3k(gzip)** in size. It achieves almost the same effect as any other huge library of animations.\n\nView demo, please click [here](https://adajuly.github.io/AniX/).\n\n![code](https://raw.githubusercontent.com/adajuly/AniX/master/logo/code.png)\n\n## Install and Include\n\n#### Install and Import anix.\n\n```bash\n$ npm install anix --save-dev\n...\n\nimport { AniX } from 'anix';\n```\n\n#### Use the umd version [anix.umd.js](https://github.com/adajuly/AniX/blob/master/dist/umd/anix.umd.js). Check out the [UMD](https://github.com/umdjs/umd) repository for more details.\n\n```html\n\u003cscript src=\"./js/anix.umd.ts\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\n#### Use jQuery plugin [anix.jq.js](https://github.com/adajuly/AniX/blob/master/dist/jq/anix.jq.js), that supports chain syntax.\n\n```html\n\u003cscript src=\"./js/jquery.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"./js/anix.jq.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n#### Basic usage.\n\n```js\nAniX.to(dom, 1, {\n  x: 300,\n  y: 10,\n  scale: 2,\n  delay: 0.5,\n  onComplete: function() {\n    alert('over');\n  },\n});\n\n// or\nAniX.to(dom, 1, {\n  width: '200px',\n  'background-color': '#ffcc00',\n  ease: AniX.ease.easeOutBack,\n  onComplete: () =\u003e {\n    //STATE : COMPLETED!\n    console.log('STATE : COMPLETED!');\n  },\n});\n```\n\n#### jQuery plug-in usage [anix.jq.js](https://github.com/adajuly/AniX/blob/master/dist/jq/anix.jq.js)\n\n```js\n$('.demo')\n  .css({ left: '0px' })\n  .to(0.5, {\n    left: '500px',\n    'background-color': '#ffcc00',\n  });\n```\n\n#### Use in react(v16+)\n\n```js\nclass MyComponent extends React.Component {\n  constructor(props) {\n    super(props);\n    this.myRef = React.createRef();\n    this.clickHandler = this.clickHandler.bind(this);\n  }\n\n  clickHandler(e) {\n    const node = this.myRef.current;\n    // animation\n    AniX.to(node, 1, {\n      x: 300,\n      y: 10,\n      scale: 2,\n    });\n  }\n\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cdiv ref={this.myRef} /\u003e\n        \u003cbutton onClick={this.clickHandler}\u003e\u003c/button\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n\n## Why?\n\nThere are a lot of animation libraries Why use AniX?\n\n- First of all, it is very small and 3kb (gzip) is very suitable for use on the mobile page (because there is a requirement for size).\n\n- Secondly, Anix directly uses native css animation properties, which is very high performance.\n\n- Good compatibility, after a lot of real machine tests, good performance. Includes a variety of android devices\n\n## Documentation\n\n#### General documents please visit [https://adajuly.github.io/AniX/](https://adajuly.github.io/AniX/)\n\n#### jQuery plug-in documents are as follows\n\n```js\n//like AniX.to\n$(..).to(time: number, args: {ease?:string; delay?:number; [propName:string]:any;})\n\n//like AniX.fromTo\n$(..).fromTo(time: number, fromArgs: Object, toArgs: Object)\n\n//like AniX.kill\n$(..).kill(complete?: boolean)\n\n//like AniX.get\n$(..).getTransform(param: any)\n\n//like AniX.ease\n$.ease.easeOut\n```\n\n## Test and Build\n\n#### install and build all task\n\n```bash\ngit clone git@github.com:adajuly/AniX.git\nnpm install\nnpm run all\n```\n\n#### build jquery or umd version\n\n```bash\nnpm run jq\nnpm run umd\n```\n\n#### demo example (the document page) is used [create-react-app](https://github.com/facebookincubator/create-react-app)\n\n```bash\ncd ./example\nnpm install\nnpm start\nnpm run build\n```\n\nThen open [http://localhost:3000/](http://localhost:3000/)\n\n#### Use test cases\n\nview the `./test/test.html`\n\n## Other\n\nThere are other versions here, of course, they are not necessary. [React version](https://github.com/adajuly/react-anix) and [Vue version](https://github.com/GeoffZhu/vue-anix)...\n\n## License\n\n[The MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadajuly%2FAniX","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadajuly%2FAniX","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadajuly%2FAniX/lists"}