react-stickynode
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -382,3 +382,3 @@ /** | ||
// No Sticky on lower-end browser when no Modernizr | ||
if (M) { | ||
if (M && M.prefixed) { | ||
canEnableTransforms = M.csstransforms3d; | ||
@@ -385,0 +385,0 @@ TRANSFORM_PROP = M.prefixed('transform'); |
{ | ||
"name": "react-stickynode", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A performant and comprehensive React sticky", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,3 +34,4 @@ # react-stickynode | ||
```js | ||
var Sticky = require('react-stickynode'); | ||
import Sticky from 'react-stickynode'; | ||
<Sticky enabled={true} top={50} bottomBoundary={1200}> | ||
@@ -42,3 +43,4 @@ <YourComponent/> | ||
```js | ||
var Sticky = require('react-stickynode'); | ||
import Sticky from 'react-stickynode'; | ||
<Sticky top='#header' bottomBoundary='#content'> | ||
@@ -71,3 +73,3 @@ <YourComponent/> | ||
```js | ||
var Sticky = require('react-stickynode'); | ||
import Sticky from 'react-stickynode'; | ||
@@ -74,0 +76,0 @@ const handleStateChange = (status) => { |
41391
104