Skip to content

Commit d4521bc

Browse files
committed
updated readme
1 parent 168dd11 commit d4521bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ $("#selector").parallax({
4040

4141
### Supported properties:
4242

43-
Property value can be specified as number or percentage (string).
44-
To specify a **from** value as well **to**, use object syntax:
45-
```javascript
46-
{"to":1,"from":0}
43+
Property value can be specified as number or percentage (string) or object.
44+
To specify a **from** value as well **to**, use the object syntax:
45+
46+
```html
47+
<div data-parallax='{"opacity":{"to":1,"from":0}'></div>
4748
```
4849

4950
translateX

0 commit comments

Comments
 (0)