Skip to content

Commit 6e17c98

Browse files
committed
docs: fix typos
1 parent 1f2fdc7 commit 6e17c98

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/en/Parallax.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# `<Parallax>`
22

3-
This component allows you to create [*Parallax effects*](https://en.wikipedia.org/wiki/Parallax).
4-
5-
It supports [React Universal Interace](https://www.npmjs.com/package/react-universal-interface).
3+
This component allows you to create [*Parallax effects*](https://en.wikipedia.org/wiki/Parallax). It supports [React Universal Interace](https://www.npmjs.com/package/react-universal-interface).
64

75

86
## Usage
@@ -13,7 +11,7 @@ The below example will slow down the scrolling of your `<img>` element.
1311
import {Parallax} from 'libreact/lib/Parallax';
1412

1513
<Parallax>{({value}) =>
16-
<img style={{marginTop: state.value * 300}} src={/* ... */} />
14+
<img style={{marginTop: value * 300}} src={/* ... */} />
1715
}</Parallax>
1816
```
1917

@@ -25,5 +23,5 @@ parallax effect will continue thoughout the lenght of your element, if set, the
2523
effect will be capped at `distance`, defaults to `Infinity`.
2624
- `throttle` &mdash; optional, number in milliseconds, used to throttle document `scroll` event, defaults to `50`.
2725
- `margin` &mdash; optional, a 4-tuple `[top, right, bottom, left]` margins in pixels to apply to the viewport.
28-
- `onChange` &mdash; optional, callback triggered every time the state of `<Parallax>` component changes. Receives the
26+
- `onChange` &mdash; optional, callback, triggered every time the state of `<Parallax>` component changes. Receives the
2927
state of the `<Parallax>` component as a single argument.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "libreact",
3-
"version": "1.6.4",
3+
"version": "1.7.0",
44
"description": "React standard library",
55
"main": "lib/index.js",
66
"repository": {

0 commit comments

Comments
 (0)