{"id":27251514,"url":"https://github.com/scarletsfiction/timeplate","last_synced_at":"2025-04-11T01:10:11.759Z","repository":{"id":109493848,"uuid":"296755590","full_name":"ScarletsFiction/Timeplate","owner":"ScarletsFiction","description":"A animation timeline built for performance and simplify some complex usage for animator needs.","archived":false,"fork":false,"pushed_at":"2020-10-17T14:37:15.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T01:10:05.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ScarletsFiction.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}},"created_at":"2020-09-19T00:22:42.000Z","updated_at":"2024-03-06T06:29:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdfeffbc-67a2-40a0-a740-48a271e83320","html_url":"https://github.com/ScarletsFiction/Timeplate","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"d335e158ac11e76f25f78d11a2c40266b2da566a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScarletsFiction%2FTimeplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScarletsFiction%2FTimeplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScarletsFiction%2FTimeplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScarletsFiction%2FTimeplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScarletsFiction","download_url":"https://codeload.github.com/ScarletsFiction/Timeplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322601,"owners_count":21084337,"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":"2025-04-11T01:10:10.988Z","updated_at":"2025-04-11T01:10:11.750Z","avatar_url":"https://github.com/ScarletsFiction.png","language":"JavaScript","funding_links":["https://patreon.com/stefansarya'"],"categories":[],"sub_categories":[],"readme":"\u003ca href='https://patreon.com/stefansarya'\u003e\u003cimg src='https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.herokuapp.com%2Fstefansarya%2Fpledges\u0026style=for-the-badge' height='20'\u003e\u003c/a\u003e\n[![Software License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)\n[![](https://data.jsdelivr.com/v1/package/npm/timeplate/badge)](https://www.jsdelivr.com/package/npm/timeplate)\n[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=A%20modern%20animation%20timeline%20built%20for%20performance%20and%20simplify%20some%20complex%20usage%20for%20animator%20needs.\u0026url=https://github.com/ScarletsFiction/Timeplate\u0026via=github\u0026hashtags=timeplate,animation,library,browser,html5)\n\n# Timeplate\nA modern animation timeline built for performance and simplify some complex usage for animator needs.\n\nDependent on EventPine as Event Manager.\u003cbr\u003e\nCurrently supported on Chrome \u003e= v84 and Firefox \u003e= v63\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/eventpine@1.0.3\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/timeplate@0.0.2\"\u003e\u003c/script\u003e\n```\n\nTo avoid error on older browser please put this on your HTML header's script.\n```js\nif(KeyframeEffect.prototype.setKeyframes === void 0){\n  KeyframeEffect.prototype.setKeyframes = function(){}\n  KeyframeEffect.prototype.getKeyframes = function(){return [{}]}\n}\n```\n\n### Example\nSome feature still being improved and undocumented yet.\u003cbr\u003e\nBeing used by StefansArya for some project.\u003cbr\u003e\nIf you're interested with this library please reach me on GitHub to update the documentation.\u003cbr\u003e\n\n#### Timeline for selected elements\nAny animateable CSS can used for keyframe, including filter (blur, hueRotate, etc).\n\n```js\nvar plate = Timeplate.for(/* El Selector */ '.Apple', /* Keyframes */[\n  {offset:0  , translateX: '50px', scaleY: 1, easing: 'ease-in'},\n  {offset:0.1, translateX: '120px'},\n  {offset:0.5, translateX: '100px', emit: \"I'm triggered\"},\n  {offset:1  , translateX: '75px', scaleY: 0.5},\n], {duration: 1000});\n\n// plate.duration = 1000;\n\nplate.on(\"I'm triggered\", function(){\n  console.log(\"Henlo\", plate.currentTime);\n});\n\n// plate.currentTime = 100; -\u003e 100ms = offset 0.1\n// Will immediately play from 100ms if above was set\n\nplate.play();\n```\n\n#### Parallel Timeline\nAnimate every timeline parallely.\n\n```js\nvar plate = Timeplate.parallel(/* Default duration for one timeline */ 1000);\nplate.timeline = [\n  Timeplate.for(/* El Selector */ '.Apple', /* Keyframes */[\n    {offset:0  , translateX: '50px', scaleY: 1, easing: 'ease-in'},\n    {offset:0.1, translateX: '120px'},\n    {offset:0.5, translateX: '100px', emit: \"I'm triggered\"},\n    {offset:1  , translateX: '75px', scaleY: 0.5},\n  ]),\n  Timeplate.for('.Orange', [\n    {offset: 0.5, translateX: '75px', scaleY: 0.5, easing: 'ease-in'},\n    {offset: 1  , translateX: '50px', scaleY: 1},\n  ]),\n];\n\nplate.on(\"I'm triggered\", function(){\n\tconsole.log(\"Henlo\", plate.currentTime);\n});\n\n// plate.currentTime = 100; -\u003e 100ms = offset 0.1\n// Will immediately play from 100ms if above was set\n\nplate.play();\n```\n\n#### Series Timeline\nAnimate ordered timeline from first index and continue to another timeline.\n\n```js\nvar plate = Timeplate.series(/* Default duration for a timeline if not set */ 1000);\nplate.timeline = [\n  Timeplate.series(/* El Selector */ '.Apple', /* Keyframes */[\n    {offset:0  , translateX: '50px', scaleY: 1, easing: 'ease-in'},\n    {offset:0.1, translateX: '120px'},\n    {offset:0.5, translateX: '100px', emit: \"I'm triggered\"},\n    {offset:1  , translateX: '75px', scaleY: 0.5},\n  ]),\n  Timeplate.for('.Orange', [\n    {offset: 0.5, translateX: '75px', scaleY: 0.5, easing: 'ease-in'},\n    {offset: 1  , translateX: '50px', scaleY: 1},\n  ]),\n];\n\nplate.on(\"I'm triggered\", function(){\n  console.log(\"Henlo\", plate.currentTime);\n});\n\n// plate.currentTime = 100; -\u003e 100ms = offset 0.1\n// Will immediately play from 100ms if above was set\n\nplate.play();\n```\n\n#### Combined Timeline\nPlay your ordered timeline inside of a timeline easily.\n\n```js\n/*\n             Series 1 Timeplate\n\n                [Parallel 1]\n [Series 2] --\u003e [Parallel 2] --\u003e [Series 3]\n                [Parallel 3]\n */\n\nvar Series1 = Timeplate.series(1000);\nSeries1.timeline = [\n  // Series 2\n  Timeplate.series(1000, [\n    Timeplate.for(...), // Dummy element animation maybe..\n  ]),\n\n  // Parallel 1,2,3\n  Timeplate.parallel(1000, [\n    Timeplate.for(...), // Playing together\n    Timeplate.for('.element', [ // Playing together\n      {offset: 0.5, emit:\"middle animation\"}\n    ]),\n    Timeplate.for(...), // Playing together\n  ]),\n\n  // Series 3 (Will be played after Series 2)\n  Timeplate.series(1000, [\n    Timeplate.for(...),\n    Timeplate.for(...),\n  ]),\n];\n\nSeries1.on('middle animation', function(){\n  // May be inaccurate\n  //                      Series 1 + Paralel * 0.5\n  Series1.currentTime === 1000     + 500;\n});\n\nSeries1.play();\n```\n\n### License\nTimeplate is under MIT License\n\nBut don't forget to put a link to the repository, or share it maybe.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarletsfiction%2Ftimeplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscarletsfiction%2Ftimeplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarletsfiction%2Ftimeplate/lists"}