{"id":16383854,"url":"https://github.com/jakesidsmith/react-slik","last_synced_at":"2026-05-19T03:34:11.134Z","repository":{"id":57344931,"uuid":"95333391","full_name":"JakeSidSmith/react-slik","owner":"JakeSidSmith","description":"React higher order component for Slik animations","archived":false,"fork":false,"pushed_at":"2017-06-25T13:00:49.000Z","size":205,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T13:39:17.532Z","etag":null,"topics":["animation","animation-library","react","slik","tween","tweening"],"latest_commit_sha":null,"homepage":"http://jakesidsmith.github.io/react-slik/","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/JakeSidSmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-25T02:17:45.000Z","updated_at":"2017-06-25T02:23:08.000Z","dependencies_parsed_at":"2022-09-16T08:01:08.071Z","dependency_job_id":null,"html_url":"https://github.com/JakeSidSmith/react-slik","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/JakeSidSmith%2Freact-slik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeSidSmith%2Freact-slik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeSidSmith%2Freact-slik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeSidSmith%2Freact-slik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakeSidSmith","download_url":"https://codeload.github.com/JakeSidSmith/react-slik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240106815,"owners_count":19748692,"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","animation-library","react","slik","tween","tweening"],"created_at":"2024-10-11T04:09:50.822Z","updated_at":"2026-05-19T03:34:11.103Z","avatar_url":"https://github.com/JakeSidSmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Slik [![CircleCI](https://circleci.com/gh/JakeSidSmith/react-slik.svg?style=svg)](https://circleci.com/gh/JakeSidSmith/react-slik)\n\n**React higher order component for [Slik](https://github.com/jakesidsmith/slik) animations**\n\n## About\n\nA library that wraps your React components, providing them with animation values as props when they update.\n\n## Installation\n\nUse npm to install react-slik.\n\n```shell\nnpm install react-slik --save --save-exact\n```\n\nI'd recommend pinning to a specific version and using `--save-exact` and `--save` to add this to your package.json automatically.\n\n## Getting started\n\n1. Require react-slik in the file where you'll be animating.\n\n    ```javascript\n    import Slik from 'slik';\n    import { animate } from 'react-slik';\n    ```\n\n1. Create your animations.\n\n    ```javascript\n    const animation = new Slik.Animation({from: 0, to: 1});\n    ```\n\n1. Create a component.\n\n    ```javascript\n    class Component extends React.Component {\n      render () {\n        const { scale } = this.props;\n\n        return (\n          \u003cdiv style={{transform: `scale(${scale}, ${scale})`}}\u003e\n            Hello, World!\n          \u003c/div\u003e\n        );\n      }\n    }\n    ```\n\n1. Animate your component.\n\n    ```javascript\n    const options = {\n      bind: 'update', // Default, update on all events\n      startOnMount: true, // Default\n      stopOnUnmount: true // Default\n    };\n\n    const AnimatedComponent = animate(Component, {scale: animation}, options);\n    ```\n\n1. Render your component.\n\n    ```javascript\n    \u003cAnimatedComponent /\u003e\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakesidsmith%2Freact-slik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakesidsmith%2Freact-slik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakesidsmith%2Freact-slik/lists"}