{"id":13805558,"url":"https://github.com/sfi0zy/weeee","last_synced_at":"2025-05-13T19:31:17.673Z","repository":{"id":65813190,"uuid":"375981714","full_name":"sfi0zy/weeee","owner":"sfi0zy","description":"Tiny Javascript tweening engine.","archived":true,"fork":false,"pushed_at":"2021-06-16T15:40:22.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T21:48:02.475Z","etag":null,"topics":["animation","tween"],"latest_commit_sha":null,"homepage":"https://sfi0zy.github.io/weeee/","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/sfi0zy.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}},"created_at":"2021-06-11T10:02:49.000Z","updated_at":"2023-01-28T04:59:40.000Z","dependencies_parsed_at":"2023-02-11T17:40:14.781Z","dependency_job_id":null,"html_url":"https://github.com/sfi0zy/weeee","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/sfi0zy%2Fweeee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfi0zy%2Fweeee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfi0zy%2Fweeee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfi0zy%2Fweeee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sfi0zy","download_url":"https://codeload.github.com/sfi0zy/weeee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254012968,"owners_count":21999346,"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":["animation","tween"],"created_at":"2024-08-04T01:01:02.308Z","updated_at":"2025-05-13T19:31:17.363Z","avatar_url":"https://github.com/sfi0zy.png","language":"JavaScript","funding_links":[],"categories":["Common"],"sub_categories":[],"readme":"# Weeee.js\n![](https://img.shields.io/badge/version-1.0.3-brightgreen) ![](https://img.shields.io/badge/dependencies-0-brightgreen) ![](https://img.shields.io/badge/license-MIT-brightgreen)\n\nTiny Javascript tweening engine.\n\n\n[Homepage](https://sfi0zy.github.io/weeee)\n\n\n![Weeee.js](main.png)\n\n\n## Usage\n\nStep 1:\n\n```sh\nnpm install --save weeee.js\n```\n\nStep 2:\n\n```javascript\nimport Weeee from 'weeee.js';\n\nconst example = new Weeee({\n    // \u003ctime in ms\u003e\n    // Infinity\n    duration: 1000,\n\n    //  \u003ctime in ms\u003e\n    delay: 0,\n\n    //  Weeee.easeLinear\n    //  Weeee.easeInCubic\n    //  Weeee.easeOutCubic\n    //  Weeee.easeInExpo\n    //  Weeee.easeOutExpo\n    //  Weeee.easeInElastic\n    //  Weeee.easeOutElastic\n    //  \u003cany other f(x), which returns values from 0 to 1\u003e\n    easing: Weeee.easeLinear,\n\n    //  Weeee.normal\n    //  Weeee.reverse\n    //  Weeee.alternate\n    direction: Weeee.normal,\n\n    //  true\n    //  false\n    autoplay: true,\n\n    //  false\n    //  \u003cnumber of iterations\u003e\n    //  Infinity\n    loop: false,\n\n    // \u003ctime in ms\u003e\n    loopDelay: 0,\n\n    //  \u003cnumber from 1 to 60\u003e\n    fps: 60,\n\n    //  \u003cfunction(progress, details)\u003e\n    //\n    // Weeee doesn't force us to manipulate with specific CSS, SVG,\n    // Canvas or WebGL objects. Just do whatever you want here.\n    //\n    // Progress will be from 0 to 1.\n    //\n    // Additional details include:\n    //  - startTime (when animation has been started, in ms)\n    //  - currentTime (current time, may bee needed in infinite animations, in ms)\n    //  - delta (time from the start, \"currentTime - startTime\", in ms)\n    //  - isFinished (becomes true in the last frame of the finite animation)\n    func: (progress, details) =\u003e {\n        myElement.style.transform = `scale(${progress})`;\n    },\n\n    // Optional callback. It will be executed after the last frame of the animation.\n    callback: () =\u003e {\n        console.log('weeee!');\n    }\n});\n\n// Also it's possible to start/stop/restart it manually. Callback will NOT be executed.\n//\n// example.start();\n// example.stop();\n// example.restart();\n```\n\n\n## CDN\n\nIt's possible to import Weeee right from the unpkg:\n\n```javascript\nimport Weeee from 'https://unpkg.com/weeee.js/weeee.js';\n```\n\n\n## More examples\n\nExamples on CodePen:\n\n1. [Page loading](https://codepen.io/sfi0zy/pen/mdWQwzL)\n2. [Spinner](https://codepen.io/sfi0zy/pen/bGqQMvN)\n\n\n## License\n\nMIT License\n\nCopyright (c) 2021 Ivan Bogachev sfi0zy@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfi0zy%2Fweeee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsfi0zy%2Fweeee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfi0zy%2Fweeee/lists"}