Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created Jun 10, 2018
Embed
What would you like to do?
Starting both goo blobs backgrounds
// wait for DOM to load
window.addEventListener('DOMContentLoaded', () => {
// start first goo blobs background
Object.create(gooBlobs).init({
canvasSelector: '#bg1'
});
// start second goo blobs background
Object.create(gooBlobs).init({
canvasSelector: '#bg2',
yVarianceRange: [-1.5, -0.5],
pixelsPerBody: 30000,
colors: ['#d3f0ea']
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment