work@lienusowl.ru

Полное портфолио: zsws.ru

Скрипт - до / после

Работает скрипт очень просто

Структура в html:

    
after
before

Подключаем скрипты для работы

    
    
    
    

Опции:

animateIntro – whether or not to have the drag bar start completely to the right of the container and gradually move by itself to the midpoint (default false)

introDelay – if animateIntro is true, the number of milliseconds to wait before beginning the automatic drag bar move to the center of the image (default 1000)

introDuration – if animateIntro is true, the number of milliseconds it will take for the drag bar to go from the right side of the image to the middle of the image (default 1000)

showFullLinks – whether or not to display links below the image that a visitor can click on that will automatically show the full before or full after image (default true)

imagePath – the path (absolute or relative) to where you store the navigation images (default ‘/js/beforeAfter/’)