Files
2025-03-04 13:40:33 +01:00

29 lines
674 B
JavaScript

/**
* Particleground demo
* @author Jonathan Nicol - @mrjnicol
*/
// This can be used to set the Particles Effects. Check README for more details!
document.addEventListener('DOMContentLoaded', function () {
particleground(document.getElementById('particles'), {
dotColor: '#5cbdaa',
lineColor: '#5cbdaa'
});
var intro = document.getElementById('intro');
intro.style.marginTop = - intro.offsetHeight / 2 + 'px';
}, false);
/*
// jQuery plugin example:
$(document).ready(function() {
$('#particles').particleground({
dotColor: '#5cbdaa',
lineColor: '#5cbdaa'
});
$('.intro').css({
'margin-top': -($('.intro').height() / 2)
});
});
*/