Comparing version 0.1.3 to 0.1.4
@@ -72,2 +72,8 @@ 'use strict'; | ||
}, { | ||
key: 'componentWillUnmount', | ||
value: function componentWillUnmount() { | ||
clearTimeout(this.transitionTimeout); | ||
cancelAnimationFrame(this.updateCall); | ||
} | ||
}, { | ||
key: 'onMouseEnter', | ||
@@ -74,0 +80,0 @@ value: function onMouseEnter() { |
{ | ||
"name": "react-tilt", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Tilt for react.js", | ||
@@ -20,5 +20,5 @@ "main": "dist/tilt.js", | ||
}, | ||
"dependencies": { | ||
"react": "^15.5.4", | ||
"react-dom": "^15.5.4" | ||
"peerDependencies": { | ||
"react": "^15.0.0 || ^16.0.0-beta || ^16.0.0", | ||
"react-dom": "^15.0.0 || ^16.0.0-beta || ^16.0.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -5,2 +5,3 @@ # React.js - Tilt.js | ||
![react-tilt demo gif](https://github.com/jonathandion/react-tilt/blob/master/demo.gif) | ||
@@ -10,2 +11,5 @@ | ||
### Demo | ||
https://vx-demo.now.sh/gallery | ||
## Install | ||
@@ -41,15 +45,14 @@ - **yarn:** `yarn add react-tilt` | ||
## API | ||
### Props | ||
**onMouseEnter()** `a → {}` Returns a React Synthetic Event | ||
| Property | Signature | | ||
| ------------- |:-------------:| | ||
| onMouseEnter | () -> SyntheticEvent | | ||
| onMouseMove | () -> SyntheticEvent | | ||
| onMouseLeave | () -> SyntheticEvent | | ||
| options | Object | | ||
**onMouseMove()** `a → {}` Returns a React Synthetic Event | ||
**onMouseLeave()** `a → {}` Returns a React Synthetic Event | ||
**options{}** `{}` | ||
## Todos | ||
## Roadmap | ||
- Tests | ||
- Flare effect | ||
- Add Flare effect | ||
@@ -56,0 +59,0 @@ ## Alternatives |
@@ -42,2 +42,6 @@ import React, { Component } from 'react'; | ||
} | ||
componentWillUnmount() { | ||
clearTimeout(this.transitionTimeout); | ||
cancelAnimationFrame(this.updateCall); | ||
} | ||
onMouseEnter(cb = () => {}, e) { | ||
@@ -44,0 +48,0 @@ this.updateElementPosition(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1643789
390
60
+ Addedreact@16.14.0(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedscheduler@0.19.1(transitive)
- Removedreact@^15.5.4
- Removedreact-dom@^15.5.4
- Removedasap@2.0.6(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpromise@7.3.1(transitive)
- Removedreact@15.7.0(transitive)
- Removedreact-dom@15.7.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.39(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)