Skip to content

Commit 1cdf2e9

Browse files
committed
Specify pixel dimension requirements in readme
1 parent bc763ff commit 1cdf2e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ If you want elements to scroll at a different speed, add the following attribute
4343
<div data-stellar-ratio="2">
4444
```
4545

46-
The ratio is relative to the natural scroll speed, so a ratio of 0.5 would cause the element to scroll at half-speed, a ratio of 1 would have no effect, and a ratio of 2 would cause the element to scroll at twice the speed.
46+
The ratio is relative to the natural scroll speed, so a ratio of 0.5 would cause the element to scroll at half-speed, a ratio of 1 would have no effect, and a ratio of 2 would cause the element to scroll at twice the speed. If a ratio lower than 1 is causing the element to appear jittery, try setting its CSS position to fixed.
4747

48-
If a ratio lower than 1 is causing the element to appear jittery, try setting its CSS position to fixed.
48+
In order for Stellar.js to perform its calculations correctly, all parallax elements must have their dimensions specified in pixels for the axis/axes being used for parallax effects. For example, all parallax elements for a vertical site must have a pixel height specified. If your design prohibits the use of pixels, try using the ['responsive' option](#configuring-everything).
4949

5050
## Parallax Backgrounds
5151

0 commit comments

Comments
 (0)