Loading...
(function(){<br />
let canvas = document.createElement('canvas'),<br />
ctx = canvas.getContext('2d'),<br />
w = canvas.width = innerWidth,<br />
h = canvas.height = innerHeight,<br />
particles = [],<br />
properties = {<br />
bgColor : 'rgba(17, 17, 19, 1)',<br />
particleColor : 'rgba(255, 40, 40, 1)',<br />
particleRadius : 3,<br />
particleCount : 60,<br />
particleMaxVelocity : 0.5,<br />
lineLength : 150,<br />
particleLife : 6,<br />
};<br />
<br />
document.querySelector('body').appendChild(canvas);<br />
<br />
window.onresize = function() {<br />
w = canvas.width = innerWidth;<br />
h = canvas.height = innerHeight;<br />
}<br />
<br />
class Particle {<br />
constructor() {<br />
this.x = Math.random()*w;<br />Loading...
To remove the background and change the text color when an input field is autofilled, you can use the following styles:
1input:-webkit-autofill,2input:-webkit-autofill:hover,3input:-webkit-autofill:focus,4textarea:-webkit-autofill,5textarea:-webkit-autofill:hover,6textarea:-webkit-autofill:focus,7select:-webkit-autofill,8select:-webkit-autofill:hover,9select:-webkit-autofill:focus {10 border: none;11 font: inherit;12 -webkit-text-fill-color: inherit;13 -webkit-box-shadow: 0 0 0px 1000px inherit inset;14 transition: background-color 5000s ease-in-out 0s;15}