An attributes-only solution to build a distortion draggable slider that also works with Webflow CMS
Below is a list of elements and options to create the canvas cursor tracking effect.
Defines the Div Block that will host the slider.
Defines the Div Block that will represent the slider. It has to be a child of the "component".
For example, this attribute could be applied to a Collection List Wrapper.
Defines the Div Block that will represent the slider mask - the direct wrapper of all the slides. It has to be a child of the "slider".
For example, this attribute could be applied to a Collection List.
Defines the Div Block that will represent a single slide inside the slider mask. It has to be applied to all the Div Blocks inside the "mask" - each Div Block will represent a single slide.
For example, this attribute could be applied to a Collection List Item.
Defines the Div Block that will represent the progress bar of the slider. It has to be a child of the "component", and it should be wrapped by another Div Block that will define its maximum width.
Use this attribute to set the speed of the slider while dragging.
Default value is 5.
Where?
This attribute should be applied to the "component" element.
Use this attribute to specify the strength of the overall distortion effect while dragging. Suggested values are in the interval from 0.05 to 0.15.
Default value is 0.05.
Use this attribute to specify the scale factor that will be applied to the slides while dragging. Suggested values are in the interval from 0.003 to 0.01.
Default value is 0.003.
Use this attribute to specify the horizontal distortion factor that will be applied to the images while dragging. Suggested values are in the interval from 0.001 and 0.04.
Default value is 0.006.