mirror of
https://github.com/barkeser2002/website-cdn.git
synced 2026-11-24 09:46:11 +03:00
29 lines
674 B
JavaScript
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)
|
|
});
|
|
});
|
|
*/
|