зеркало из https://github.com/github/plax.git
Родитель
b19dd3e5d5
Коммит
ec7cf6ef2e
|
@ -102,7 +102,7 @@ Disable parallaxing.
|
|||
|
||||
## Best Practices
|
||||
|
||||
- Items should be `absolutely: positioned;`, with `top:` and `left:` values specified.
|
||||
- Items should be absolutely positioned, with `top:` and `left:` values specified.
|
||||
|
||||
- If you plan to parallax a background plane, be sure to give it enough extra "bleed" room so the image stays behind it's frame at all times. Usually your bleed on one side should be equal to half the range you give it, though you can give it more if you are paranoid.
|
||||
|
||||
|
@ -139,4 +139,4 @@ The principals from the previous scenario are still present in this situation, o
|
|||
|
||||
- __Smarter Plaxing:__ Right now Plax assumes your items are absolutely positioned. In the future I'd like to have Plax convert the current positioning scheme to what it needs, allowing initially relatively positioned elements.
|
||||
|
||||
- __plaxTo()__ It'd be cool if you could give Plax a percentage to parallax to. This would allow for more than just the mouse as the source of input.
|
||||
- __plaxTo()__ It'd be cool if you could give Plax a percentage to parallax to. This would allow for more than just the mouse as the source of input.
|
||||
|
|
Загрузка…
Ссылка в новой задаче