react-scroll-up
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,13 @@ | ||
# [1.0.2] | ||
### Bug | ||
* **Visibility:** set visibility hidden after hide button | ||
* **Dependency:** Update dependency information | ||
### Other | ||
* **Default value:** change default value of easing | ||
# [1.0.1] | ||
@@ -2,0 +14,0 @@ |
@@ -37,3 +37,3 @@ /** | ||
duration: 250, | ||
easing: 'easeInCubic', | ||
easing: 'easeOutCubic', | ||
style: { | ||
@@ -115,3 +115,4 @@ position: 'fixed', | ||
style.opacity = this.state.show ? 1 : 0; | ||
style.transitionProperty = 'opacity'; | ||
style.visibility = this.state.show ? 'visible' : 'hidden'; | ||
style.transitionProperty = 'opacity, visibility'; | ||
@@ -118,0 +119,0 @@ return ( |
{ | ||
"name": "react-scroll-up", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "React component to render element for scroll to top of page", | ||
@@ -30,9 +30,8 @@ "author": "Milos Janda <milos.janda@gmail.com>", | ||
"dependencies": { | ||
"tween-functions": "~1.0.2" | ||
}, | ||
"devDependencies": { | ||
"tween-functions": "~1.0.2", | ||
"react-tools": "~0.13.3" | ||
}, | ||
"devDependencies": {}, | ||
"readmeFilename": "README.md", | ||
"license": "MIT" | ||
} |
@@ -5,3 +5,3 @@ # react-scroll-up | ||
Library uses [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame), | ||
if you want better browser compatibility, you can use something like [https://gist.github.com/paulirish/1579671]. | ||
if you want better browser compatibility (IE9 and older), you can use something like [https://gist.github.com/paulirish/1579671]. | ||
@@ -17,2 +17,4 @@ | ||
[Live demo](http://milosjanda.github.io/react-scroll-up/) | ||
You have to define children element, for example `<span>UP</span>` | ||
@@ -40,3 +42,3 @@ | ||
default: easeInCubic | ||
default: easeOutCubic | ||
@@ -43,0 +45,0 @@ Type of scrolling easing. You can specify some of this type of easing: https://github.com/chenglou/tween-functions |
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
7953
0
109
74
2
+ Addedreact-tools@~0.13.3
+ Addedacorn@5.7.4(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedast-types@0.9.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase62@0.1.1(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addedesprima@3.1.3(transitive)
+ Addedesprima-fb@13001.1001.0-dev-harmony-fb(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjstransform@10.1.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedq@1.5.1(transitive)
+ Addedreact-tools@0.13.3(transitive)
+ Addedrecast@0.11.23(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsource-map@0.1.310.5.7(transitive)
+ Addedwrappy@1.0.2(transitive)