Distortion Draggable Slider

An attributes-only solution to build a distortion draggable slider that also works with Webflow CMS

How it works

  1. step #1

    Copy the Distortion Draggable Slider <script> and paste it into the <head> of your page

    <!-- [Webflow Friendly Components by Francesco Castronuovo] Distortion Draggable Slider -->
    <script async src="https://cdn.jsdelivr.net/gh/francesco-castronuovo/distortion-draggable-slider@1.0.2/main.js"></script>
    Copy Script
  2. step #2

    Implement in Webflow

    Apply the attributes to the elements inside the page

    Below is a list of elements and options to create the canvas cursor tracking effect.

    component
    I want this
    Div Block
    to be slider component.
    slider
    I want this
    Div Block
    to be slider.
    mask
    I want this
    Div Block
    to be slider mask.
    slide
    I want this
    Div Block
    to be a slide.
    progress bar
    I want this
    Div Block
    to be the progress bar. (optional)
    Option
    speed
    I want the slider to have this speed.
    Option
    strength
    I want the slider distortion to have this strength.
    Option
    SCALE
    I want this to be the scale factor to be applied on the images.
    Option
    distortion
    I want this to be the distortion factor to be applied on the images.