You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-22Lines changed: 36 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ This will look for any parallax backgrounds or elements within the specified ele
33
33
34
34
Support in Mobile WebKit browsers requires a touch scrolling library, and a slightly tweaked configuration. For a full walkthrough on how to implement this correctly, read my blog post ["Mobile Parallax with Stellar.js"](http://markdalgleish.com/2012/10/mobile-parallax-with-stellar-js).
35
35
36
-
Please note that parallax backgrounds are not recommended in Mobile WebKit, only parallax elements.
36
+
Please note that parallax backgrounds are not recommended in Mobile WebKit due to performance constraints. Instead, use parallax elements with static backgrounds.
37
37
38
38
## Parallax Elements
39
39
@@ -183,18 +183,11 @@ If your method for creating a scrolling interface isn't covered by one of these,
Now, you can specify this position property in Stellar.js' configuration.
242
+
243
+
```js
244
+
$.stellar({
245
+
positionProperty:'foobar'
246
+
});
247
+
```
248
+
235
249
## Package Managers
236
250
237
251
Stellar.js can be installed with the following tools.
@@ -266,29 +280,29 @@ I'm sure there are heaps more. [Let me know if you'd like me to feature your sit
266
280
267
281
## How to Build
268
282
269
-
Stellar.js uses [Grunt](http://gruntjs.com) and [PhantomJS](http://phantomjs.org/).
270
-
271
-
Once you've got Grunt and PhantomJS set up, you can validate, test, concatenate and minify the project with the following command:
283
+
Stellar.js uses [Node.js](nodejs.org), [Grunt](http://gruntjs.com) and [PhantomJS](http://phantomjs.org/).
272
284
273
-
`grunt`
285
+
Once you've got Node and PhantomJS set up, install the dependencies:
274
286
275
-
Each of the build steps are also available individually.
287
+
`$ npm install`
276
288
277
-
To test the code using QUnit and PhantomJS:
289
+
To lint, test and minify the project, simply run the following command:
278
290
279
-
`grunt qunit`
291
+
`$ grunt`
280
292
281
-
To validate the code using JSHint:
293
+
Each of the build steps are also available individually.
282
294
283
-
`grunt lint`
295
+
`$ grunt test` to test the code using QUnit and PhantomJS:
284
296
285
-
To continuously validate and test the code while developing:
297
+
`$ grunt lint` to validate the code using JSHint.
286
298
287
-
`grunt watch`
299
+
`$ grunt watch` to continuously lint and test the code while developing.
288
300
289
301
## Contributing to Stellar.js
290
302
291
-
Make sure that all plugin changes are made in `src/jquery.stellar.js` (`/jquery.stellar.js` and `/jquery.stellar.min.js` are generated by Grunt), and that you successfully test and build the project with `grunt` before committing.
303
+
Ensure that you successfully test and build the project with `$ grunt` before committing.
304
+
305
+
Make sure that all plugin changes are made in `src/jquery.stellar.js` (`/jquery.stellar.js` and `/jquery.stellar.min.js` are generated by Grunt).
292
306
293
307
If you want to contribute in a way that changes the API, please file an issue before submitting a pull request so we can discuss how to appropriately integrate your ideas.
0 commit comments