react-displaceable
v1.0.1
Published
React component for displaceable
Downloads
8
Readme
react-displaceable
React component for displaceable
Table of Contents
Install
This project uses node and npm.
$ npm install react-displaceable
$ # OR
$ yarn add react-displaceable
Usage
import React from "react";
import ReactDOM from "react-dom";
import Displaceable from "react-displaceable";
import "./styles.css";
function App() {
return (
<div className="App">
<Displaceable
displaceFactor={5}
// Other options are also supported
// See: https://github.com/dinohamzic/displaceable#configuration
>
<h1>Hello There!</h1>
</Displaceable>
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT