{"id":26892164,"url":"https://github.com/hossein-zare/keyframe-animation","last_synced_at":"2025-09-06T04:36:38.257Z","repository":{"id":57289192,"uuid":"309115324","full_name":"hossein-zare/keyframe-animation","owner":"hossein-zare","description":"Pure javascript animation manager similar to css animations with keyframes.","archived":false,"fork":false,"pushed_at":"2020-11-01T19:44:18.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T12:49:09.608Z","etag":null,"topics":["animated","animation","css-like","ease-out","javascript","keyframes","linear"],"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/hossein-zare.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":"2020-11-01T14:36:19.000Z","updated_at":"2022-11-30T15:37:50.000Z","dependencies_parsed_at":"2022-08-29T10:50:19.003Z","dependency_job_id":null,"html_url":"https://github.com/hossein-zare/keyframe-animation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hossein-zare/keyframe-animation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hossein-zare%2Fkeyframe-animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hossein-zare%2Fkeyframe-animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hossein-zare%2Fkeyframe-animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hossein-zare%2Fkeyframe-animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hossein-zare","download_url":"https://codeload.github.com/hossein-zare/keyframe-animation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hossein-zare%2Fkeyframe-animation/sbom","scorecard":{"id":469321,"data":{"date":"2025-08-11","repo":{"name":"github.com/hossein-zare/keyframe-animation","commit":"fd3f5b20e3849a6e9363fe0e86c0dd2f6f7d337a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T13:24:37.370Z","repository_id":57289192,"created_at":"2025-08-19T13:24:37.370Z","updated_at":"2025-08-19T13:24:37.370Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273858845,"owners_count":25180766,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["animated","animation","css-like","ease-out","javascript","keyframes","linear"],"created_at":"2025-03-31T22:49:21.904Z","updated_at":"2025-09-06T04:36:38.233Z","avatar_url":"https://github.com/hossein-zare.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keyframe Animation 1.x\nPure javascript animation manager similar to css animations with keyframes.\n\n## Get Started\n### Installation\nvia NPM\n```bash\nnpm i keyframe-animation\n```\nvia Yarn\n```bash\nyarn add keyframe-animation\n```\n\n### Basic Usage\n```javascript\nconst KeyframeAnimation = require('keyframe-animation');\n\nconst myAnimation = new KeyframeAnimation();\nmyAnimation.set({\n    fps: 60, // frames per second\n    duration: 2, // seconds\n    animation: 'linear', // linear, ease-out\n    iterationCount: 'infinite' // 1, 2, ... , infinite\n})\n    // Similar to CSS Animations\n    .keyframes({\n        0: {\n            width: 100,\n        }\n        50: {\n            width: 150,\n        },\n        100: {\n            width: 200\n        }\n    });\n\n// Start the animation\nmyAnimation.animate(data =\u003e {\n    document.getElementById('myBox').style.width = `${data.width}px`;\n});\n\n// Stop the animation\nmyAnimation.stop();\n\n// HTML\n\u003cdiv id=\"myBox\" style=\"width: 100px; height:2px; background-color: crimson;\"\u003e\u003c/div\u003e\n```\n\n### How to use Keyframe Animation in React/React Native?\n```javascript\nimport KeyframeAnimation from 'keyframe-animation';\n\nexport default class MyComponent extends React.Component {\n    constructor(props) {\n        super(props);\n\n        this.width = 100;\n    }\n\n    startAnimation() {\n        ...\n        .animate(data =\u003e {\n            this.width = data.width;\n            this.forceUpdate(); // Important\n        });\n    }\n\n    render() {\n        return (\n            ...\n        );\n    }\n}\n```\nYou can decrease the fps to improve the performance.\n\n\u003e(50 - 40) is recommended for React/React Native.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhossein-zare%2Fkeyframe-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhossein-zare%2Fkeyframe-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhossein-zare%2Fkeyframe-animation/lists"}