writerrest.blogg.se

Parallax js
Parallax js






parallax js

Disable this if you wish to enable the parallax scrolling effect on Android devices. If true, this option will set the parallax image as a static, centered background image whenever it detects an Android user agent. Disable this if you wish to implement your own graceful degradation. If true, this option will set the parallax image as a static, centered background image whenever it detects an iOS user agent. IOS devices are incompatable with this plugin.

parallax js

This can hide slow or stuttering scroll events in certain browsers. You can optionally set the parallax mirror element to extend a few pixels above and below the mirrored element. By default these will be behind everything else on the page. The z-index value of the fixed-position elements. 0.0 means the image will appear fixed in place, and 1.0 the image will flow at the same speed as the page content. The speed at which the parallax effect runs. The parallax image will be positioned as close to these values as possible while still covering the target element.

parallax js

Specify coordinates as top, bottom, right, left, center, or pixel values (e.g. This is analogous to the background-position css property. You can provide the natural width and natural height of an image to speed up loading and reduce error when determining the correct aspect ratio of the image. You must provide a path to the image you wish to apply to the parallax effect. Note that when specifying these options as html data-attributes, you should convert "camelCased" variable names into "dash-separated" lower-case names (e.g. For data attributes, append the option name to data-, as in data-image-src="". Options can be passed in via data attributes of JavaScript.








Parallax js