Skip to content

Instantly share code, notes, and snippets.

@nite
Created October 21, 2019 22:04
Show Gist options
  • Save nite/72fa1bafbd0d279bf422e46536671ae0 to your computer and use it in GitHub Desktop.
Save nite/72fa1bafbd0d279bf422e46536671ae0 to your computer and use it in GitHub Desktop.
Interactive Particle Logo
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>ParticleSlider</title>
</head>
<body id="particle-slider">
<div class="slides">
<div id="first-slide" class="slide"
style="width: 100%; height 100%"
data-noise="100"
data-width="550"
data-height="270"
data-min-width="2500"
data-min-height="2500"
data-src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCEtLSBHZW5lcmF0b3I6IEdyYXZpdC5pbyAtLT48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHN0eWxlPSJpc29sYXRpb246aXNvbGF0ZSIgdmlld0JveD0iMCAwIDUwMCAzMDAiIHdpZHRoPSI1MDBwdCIgaGVpZ2h0PSIzMDBwdCI+PGRlZnM+PGNsaXBQYXRoIGlkPSJfY2xpcFBhdGhfUEVjUUk3V0lwY1ppY3kySXBwdWtyWDc5V3dJSVlhbEEiPjxyZWN0IHdpZHRoPSI1MDAiIGhlaWdodD0iMzAwIi8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI19jbGlwUGF0aF9QRWNRSTdXSXBjWmljeTJJcHB1a3JYNzlXd0lJWWFsQSkiPjxjbGlwUGF0aCBpZD0iX2NsaXBQYXRoX0UzVFFIRlU4aDRhWllSZnNSTVkya2I4blhsa0YxOVdjIj48cmVjdCB4PSIxNDcuODQ5IiB5PSItNTYiIHdpZHRoPSI0MTIuMTUxIiBoZWlnaHQ9IjQwNiIgdHJhbnNmb3JtPSJtYXRyaXgoMSww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</div>
</div>
<canvas class="draw"></canvas>
</body>
</html>
// Tamino Martinius - All rights reserved
// Copyright © 2013 Tamino Martinius (http://zaku.eu)
// Copyright © 2013 Particleslider.com (http://particleslider.com
// Terms of usage: http://particleslider.com/legal/license
var init = function(){
var isMobile = navigator.userAgent &&
navigator.userAgent.toLowerCase().indexOf('mobile') >= 0;
var isSmall = window.innerWidth < 1000;
var ps = new ParticleSlider({
ptlGap: isMobile || isSmall ? 2 : 0,
ptlSize: isMobile || isSmall ? 1 : 1,
width: window.innerWidth,
height: window.innerHeight,
noise: 1e9,
// monochrome: false,
// showArrowControls: false,
// gravity: 1,
mouseForce: 5e4,
renderer: 'webgl',
});
var gui = new dat.GUI();
gui.add(ps, 'ptlGap').min(0).max(1000).step(1).onChange(function(){
ps.init(true);
});
gui.add(ps, 'ptlSize').min(1).max(1000).step(1).onChange(function(){
ps.init(true);
});
gui.add(ps, 'restless');
gui.addColor(ps, 'color').onChange(function(value){
ps.monochrome = true;
ps.setColor(value);
ps.init(true);
});
(window.addEventListener
? window.addEventListener('click', function(){ps.init(true)}, false)
: window.onclick = function(){ps.init(true)});
}
var initParticleSlider = function(){
var psScript = document.createElement('script');
(psScript.addEventListener
? psScript.addEventListener('load', init, false)
: psScript.onload = init);
psScript.src = 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/23500/ps-0.9.js';
psScript.setAttribute('type', 'text/javascript');
document.body.appendChild(psScript);
}
(window.addEventListener
? window.addEventListener('load', initParticleSlider, false)
: window.onload = initParticleSlider);
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.6/dat.gui.min.js"></script>
@hintImg: url('');
html, body {
background-color: black;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
.slides, & > .dg {
display: none;
}
}
@media (min-width: 1000px) {
body {
background-image: @hintImg;
background-repeat: no-repeat;
& > .dg {
display: block;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment