{"id":16490211,"url":"https://github.com/jschr/proparty","last_synced_at":"2025-10-27T20:31:31.201Z","repository":{"id":148931239,"uuid":"14794420","full_name":"jschr/proparty","owner":"jschr","description":"Take control over your CSS3 animations. ","archived":false,"fork":false,"pushed_at":"2015-10-11T20:34:57.000Z","size":244,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T08:04:23.187Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jschr.github.com/proparty/","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/jschr.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-11-29T06:42:56.000Z","updated_at":"2021-08-10T12:25:08.000Z","dependencies_parsed_at":"2023-04-09T13:17:00.876Z","dependency_job_id":null,"html_url":"https://github.com/jschr/proparty","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/jschr%2Fproparty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschr%2Fproparty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschr%2Fproparty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschr%2Fproparty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jschr","download_url":"https://codeload.github.com/jschr/proparty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238553137,"owners_count":19491379,"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-10-11T13:46:58.797Z","updated_at":"2025-10-27T20:31:25.906Z","avatar_url":"https://github.com/jschr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Proparty.js v0.1.0\n\nDemos and documentation [here](http://jschr.github.com/proparty/)\n\nProparty is a small javascript library that makes defining CSS transitions and animations a breeze.\n\n##The Basics\n\n```js\npp('.example')\n  .set('top', '80%')\n  .setWithVendor('border-radius', '100px')\n  .start();\n```\n\n##Multiple Values\n\n```js\npp('.example')\n  .set('top', ['80%', '60%'])\n  .set('left', ['80%', '20%', '%50'])\n  .start();\n```\n\n##Cycle\n\n```js\npp('.example', { cycle: 7 })\n  .set('top', ['80%', '60%', '%20', '40%'])\n  .set('left', ['80%', '20%', '%50'])\n  .start();\n```\n\n##Duration/Delay\n\n```js\npp('.example')\n  .setSettings({ duration: 1000, delay: 250, initialDelay: 500 })\n  .set('padding', ['40px', '20px'])\n  .set('opacity', ['0.5', '1.0'])\n  .start();\n```\n\n##Easing\n\n```js\npp('.example', { ease: 'in' })\n .set('top', '80%')\n .start();\n```\n\n##Transforms\n\n```js\npp('.example')\n  .set('top', ['80%', '30%', '50%'])\n  .transform('rotateX', ['180deg', '360deg', '0deg'])\n  .transform('rotateY', ['180deg', '0deg'])\n  .start();\n```\n\n##Animations\n```js\npp('.example')\n  .setDuration(1000)\n  .animate('twisterInDown')\n  .start();\n```\n\n##Using Functions\n\n```js\npp('.example')\n  .setCycle(5)\n  .set('top', function () { \n    return Math.floor((Math.random() * 80) + 1) + '%'; \n  })\n  .transform('rotateX', [\n    function () { return (this.inc + 1) * 15 + 'deg'; },\n    function () { return (this.inc + 1) * 20 + 'deg'; },\n  ])\n  .start();\n```\n\n##Adding/Subtracting\n\n```js\npp('.example')\n  .setCycle(5)\n  .set('top', pp.math.subtract('40px'))\n  .set('left', pp.math.add('40px'))\n  .start();\n```\n\n##Methods\n\n```js\nvar ppExample = pp('.example')\n  .setCycle(true)\n  .set('top', ['15%', '85%', '85%', '15%'])\n  .set('left', ['15%', '15%', '85%', '85%'])\n  .set('background-color', function () { \n    return '#' + (Math.random().toString(16) + '000000').slice(2, 8); \n  });\n  .start();\n\n\n// pause transitions\nppExample.pause();\n\n// stop transitions\nppExample.stop();\n\n// destroy and call any queued up transitions\nppExample.destroy();\n```\n\n##Callbacks\n\n```js\npp('.example')\n  .setCycle(6)\n  .transform('skew', ['20deg, 60deg', '-20deg, -60deg', '0deg, 0deg'])\n  .transform('rotateY', ['180deg', '180deg', '0deg'])\n  .whenStarted(function () { $('.text').html('Started!'); })\n  .whenPaused(function () { $('.text').html('Paused!'); })\n  .whenStopped(function () { $('.text').html('Stopped!'); })\n  .start();\n```\n\n##Chaining\n\n```js\npp('.example')\n  .set('top', ['20%', '80%'])\n  .set('left', '20%')\n  .chain(function () {\n    return pp('.example-two')\n      .set('top', ['20%', '80%'])\n      .set('left', '80%')\n  })\n  .start();\n```\n\n##Supported Browsers\n\nProparty supports all modern browsers with CSS transition support as well as IE9.\n\n##Dependencies\n\nNone! Proparty is compatible with jQuery but does not require it.\n\n##Roadmap\n\n* Support for CSS3 animations.\n* Allowing mulitple elements to be animated with the same instance.\n* Forcing hardware acceleration to improve iOS performance.\n* Reduce internal state to allow for branching off of transitions without mutatation.\n\n##Credits\n\nProparty was inspired by [move.js](https://github.com/visionmedia/move.js), special thanks to the creators for an awesome library!\n\n##License\n\nCopyright (C) 2014 Jordan Schroter\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/jschr/proparty/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschr%2Fproparty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjschr%2Fproparty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschr%2Fproparty/lists"}