{"id":13448551,"url":"https://github.com/zeh/fween-js","last_synced_at":"2025-04-27T03:31:18.911Z","repository":{"id":36437487,"uuid":"40742505","full_name":"zeh/fween-js","owner":"zeh","description":"Fween.","archived":false,"fork":false,"pushed_at":"2024-01-31T04:00:47.000Z","size":395,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T20:46:03.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/zeh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-15T01:25:14.000Z","updated_at":"2024-01-31T03:46:17.000Z","dependencies_parsed_at":"2024-10-28T13:08:16.333Z","dependency_job_id":"e06420ce-9c77-4fbd-9ba8-4d73c403493b","html_url":"https://github.com/zeh/fween-js","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeh%2Ffween-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeh%2Ffween-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeh%2Ffween-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeh%2Ffween-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeh","download_url":"https://codeload.github.com/zeh/fween-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251085147,"owners_count":21533821,"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-07-31T05:01:48.776Z","updated_at":"2025-04-27T03:31:18.507Z","avatar_url":"https://github.com/zeh.png","language":"TypeScript","readme":"# Fween\n\nFween tweens things - object properties, function calls, HTML element styles.\n\nIt is a TypeScript project that builds into a JavaScript library.\n\nIts main concept is simplicity. Its syntax uses a chained/stream methodology to construct sequences.\n\nIt is experimental, and under early development.\n\n## Syntax\n\nWith a getter/setter function pair:\n\n    Fween.use(getterFunc, setterFunc)\n        .from(value) // Optional: set the starting value\n        .to(value, durationSeconds = 0, transitionFunction = Easing.none)\n\nWith an arbitrary object:\n\n    Fween.use(obj)\n        .todo\n\nAll Fween instances also include some common methods:\n\n    Fween.use(...)\n        .play()\n        .pause()\n        .call(function)\n        .wait(seconds)\n\n## Examples\n\nA getter/setter animation, smooth scrolling in 1 second and then calling a function:\n\n    Fween.use(getScrollY, setScrollY).to(0, 1, Easing.expoOut).call(completeCallback).play();\n\n    function getScrollY() {\n        return window.scrollY;\n    }\n    function setScrollY(value) {\n        window.scrollTo(0, value);\n    }\n    function completeCallback() {\n        console.log(\"Smooth scroll ended.\");\n    }\n\n## Todo\n\n    Fween.use(obj)\n\t\t.to({x: value}, 1, Easing.expoOut);\n\n    Fween.use(element.style)\n\t\t.to({top: \"valuepx\"}, 1, Easing.expoOut);\n\n    Fween.use(element)\n\t\t.to(\"background-color: #ffffff\", 1, Easing.expoOutString)\n\t\t\n\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeh%2Ffween-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeh%2Ffween-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeh%2Ffween-js/lists"}