Wiki.js

Slider

Slider

A box in which another element is placed. The inner element can be positioned according to a variable in the app, e.g. being moved from left to right, between a given minimum- and maximum value, depending on the loaded variable.

Note
All css values, except for width, height, left, top, position, and z-index, are applied to the inner element, not the outer one.

Note
If the slider should be positioned on top of a given background, such as a box, it is recommended to create a second element with the same dimensions as this element's outer element. This second element can then be styled as desired, and serve as the background for this slider element.

Control parameters

Note
If a dimension is not calculated using a variable, it will always be positioned in the upper left corner of the outer element. For these cases, it is suggested to use a width/height of 100%, and select the outer element's width/height accordingly.

Suggested design parameters