Socket
Socket
Sign inDemoInstall

react-tilt

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tilt - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

6

dist/tilt.js

@@ -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() {

8

package.json
{
"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();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc