Skip to content

Instantly share code, notes, and snippets.

View rafanake's full-sized avatar

Rafael Leandro Fiori rafanake

View GitHub Profile
@rafanake
rafanake / javascript-tornpaper.js
Last active May 5, 2020 19:57
JavaScript - Torn Paper effect
tornPaper = options => {
let defaults = {
selector: null,
offset: 50,
stepX: 5,
stepY: 5,
extra: null
};
const params = Object.assign(defaults, options);