Log in
Log in with USB
Inloggen met vingerafdruk wordt binnenkort mogelijk.
Last change: November 14, 2019
Current version: 1.4.0
Module parallaxScreens devides a list into screens, shown one at a time
webanizr.collect('parallaxScreens', parameters, callback);
The collect method of dragAndDrop accepts the following parameters.
The id of the div of which the screens are the children.
The list of screens to be affected by this module. The syntax is:
{ 'id-div1' : { ... }, 'id-div2' : { }, ... }
for each div, properties can be set. The following properties are supported:
The list css defines the css for the screen and elements in it. Example:
{ 'id-div1' : { list__styles : { "screen" : "opacity: 0 1 0", #screen2 span' : "margin-left : 10px 30px 10px, margin-right : 10px 30px 10px", ...
The key of each item is the query selector of the items to style. The key "screen" refers to the div it self. As value the css styling is defined. The different properties are comma seperated. Each property has 3 values. The first value is the inital value. The second value is the value to use when the screen comes into view. The third value is the value to apply when the screen goes out of view.
The number of miliseconds you need to stop scrolling before the screen snaps.
If set to true, debugging information about the triggers and scrolling will be shown in the console log of the browser.
The callback is called when setting the screens up is finished.
https://cdn.cpmodules.webanizr.com/demo/parallax-screens/index.html