Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 337 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 337 Bytes

scene-pan

Smooth scene panning on mouse/touch drag

example

https://codepen.io/jackismissing/pen/vJmpWO

usage

Import

import ScenePan from 'scene-pan';

Instantiation

const scenePan = new ScenePan({
    el: document.querySelector('.pan-wrapper'),
    ease: .08
});

Options

ease: default to 0.8;