react-displaceable

1.0.1 • Public • Published

react-displaceable

package version package downloads standard-readme compliant package license make a pull request

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

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am "Add some feature"
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i react-displaceable

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.54 kB

Total Files

12

Last publish

Collaborators

  • tiaanduplessis