{"id":22945122,"url":"https://github.com/seregpie/vuetween","last_synced_at":"2025-08-12T22:33:20.910Z","repository":{"id":57140020,"uuid":"136717097","full_name":"SeregPie/VueTween","owner":"SeregPie","description":"Allows the components to tween their properties.","archived":false,"fork":false,"pushed_at":"2020-10-18T17:52:55.000Z","size":35,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-13T07:35:45.379Z","etag":null,"topics":["animation","mixin","plugin","tween","vue"],"latest_commit_sha":null,"homepage":"https://seregpie.github.io/VueTween/","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/SeregPie.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":"2018-06-09T11:24:09.000Z","updated_at":"2023-12-12T13:26:54.000Z","dependencies_parsed_at":"2022-09-05T01:30:23.097Z","dependency_job_id":null,"html_url":"https://github.com/SeregPie/VueTween","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/SeregPie%2FVueTween","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2FVueTween/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2FVueTween/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2FVueTween/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeregPie","download_url":"https://codeload.github.com/SeregPie/VueTween/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229716020,"owners_count":18113029,"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","mixin","plugin","tween","vue"],"created_at":"2024-12-14T14:29:46.563Z","updated_at":"2024-12-14T14:29:46.981Z","avatar_url":"https://github.com/SeregPie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VueTween\n\nAllows the components to tween their properties.\n\n## demo\n\n[Try it out!](https://seregpie.github.io/VueTween/)\n\n## dependencies\n\n- [Vue](https://github.com/vuejs/vue)\n\n## setup\n\n### npm\n\n```shell\nnpm install @seregpie/vuetween\n```\n\n### ES module\n\nInstall the plugin globally.\n\n```javascript\nimport Vue from 'vue';\nimport VueTween from '@seregpie/vuetween';\n\nVue.use(VueTween);\n```\n\n*or*\n\nRegister the plugin in the scope of a component.\n\n```javascript\nimport VueTween from '@seregpie/vuetween';\n\nexport default {\n  mixins: [VueTween],\n  /*...*/\n};\n```\n\n### browser\n\n```html\n\u003cscript src=\"https://unpkg.com/vue\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/@seregpie/vuetween\"\u003e\u003c/script\u003e\n```\n\nIf Vue is detected, the plugin will be installed automatically.\n\n## usage\n\n```javascript\n{\n  props: {\n    number: Number,\n    animationDuration: Number,\n  },\n  tweened: {\n    animatedNumber: {\n      get() {\n        return this.number;\n      },\n      duration() {\n        return this.animationDuration;\n      },\n      easing(t) {\n        return t * (2 - t);\n      },\n    },\n  },\n}\n```\n\n---\n\nUse nested objects and arrays.\n\n```javascript\n{\n  data: {\n    colors: [\n      {r: 255, g: 0, b: 0},\n      {r: 0, g: 255, b: 0},\n      {r: 0, g: 0, b: 255},\n    ],\n  },\n  tweened: {\n    animatedColors: {\n      get() {\n        return this.colors;\n      },\n      duration: 1000,\n    },\n  },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseregpie%2Fvuetween","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseregpie%2Fvuetween","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseregpie%2Fvuetween/lists"}