Sweet chaos in the space of tulle

Developer
Size
3,085 Kb
Views
40,480

How do I make an sweet chaos in the space of tulle?

Forked from Nate Wiley's Pen GgdjOa.. What is a sweet chaos in the space of tulle? How do you make a sweet chaos in the space of tulle? This script and codes were developed by Bailh on 12 July 2022, Tuesday.

Sweet chaos in the space of tulle Previews

Sweet chaos in the space of tulle - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sweet chaos in the space of tulle</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { overflow: hidden; background: #381d38;
}
#paper { position: absolute; z-index: 0; display: block; height: 100%; width: 100%; margin: 0;
}
div { position: fixed; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%;
}
.bg { background: radial-gradient(circle, #ff4500, #0b0d87);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <svg id="paper"></svg>
<div class="bg"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/sketch.js/1.0.0/sketch.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.4.1/snap.svg-min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Sweet chaos in the space of tulle - Script Codes CSS Codes

body { overflow: hidden; background: #381d38;
}
#paper { position: absolute; z-index: 0; display: block; height: 100%; width: 100%; margin: 0;
}
div { position: fixed; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%;
}
.bg { background: radial-gradient(circle, #ff4500, #0b0d87);
}

Sweet chaos in the space of tulle - Script Codes JS Codes

var s = Sketch.create({autoclear: false});
var particles = [];
var max = 120;
var clearColor ="rgba(0,14,21,.03)";
var hue =20;
function P(){}
P.prototype = { constructor: P, init: function(){ this.r = random(-11) + 70; this.x = s.width/2; this.y = s.height/2; this.vx = random(-5, 5); this.vy = random(-2, 2); this.color = "hsla("+hue+", 100%, 40%, .05)"; this.life = 0.004; this.maxLife = random(650); }, draw: function(){ s.strokeStyle = this.color; s.beginPath(); s.globalCompositeOperation = "lighter"; s.arc(this.x, this.y, this.r*1.9, 0, TWO_PI);	s.stroke(); this.update(); }, update: function(){ this.x += this.vx; this.y += this.vy*-2; this.life++; if(this.life >= this.maxLife || this.r <= 0.05){ this.init(); } }
};
s.setup = function(){ for(var i=10; i<max; i++){ setTimeout(function(){ var p = new P(); p.init(); particles.push(p) }, i *2); }
};
s.update = function(){ s.fillStyle = clearColor; s.globalCompositeOperation = "source-over"; s.fillRect(0,0,s.width,s.height*1); hue += 0.07;
};
s.draw = function(){ for(var i in particles){ particles[i].draw(); }
};
var svg = Snap("#paper");
var circ = svg.circle(7,9,8.2) .attr({fill:"rgba(0,0,0,.2)"}) .pattern(0,0,30,40) .attr({patternTransform: "rotate(40)"});
svg.rect(0,0,'100%','100%').attr({fill: circ});
Sweet chaos in the space of tulle - Script Codes
Sweet chaos in the space of tulle - Script Codes
Home Page Home
Developer Bailh
Username cathbailh
Uploaded July 12, 2022
Rating 4.5
Size 3,085 Kb
Views 40,480
Do you need developer help for Sweet chaos in the space of tulle?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Bailh (cathbailh) Script Codes
Name
Spirographe
Lunares
Rainbow Harmony
Dijafragma
Etoiles
Harlequin ball
La roue tourne
Skull js-blended up to the eyes
Job
Pistils
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!