Infinite Rings

Developer
Size
2,077 Kb
Views
10,120

How do I make an infinite rings?

What is a infinite rings? How do you make a infinite rings? This script and codes were developed by David Hartley on 18 November 2022, Friday.

Infinite Rings Previews

Infinite Rings - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Infinite Rings</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id="canvas" /> <script src='https://code.createjs.com/createjs-2013.12.12.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Infinite Rings - Script Codes CSS Codes

body {	background: #777; overflow: hidden;
}

Infinite Rings - Script Codes JS Codes

var stage, objects;
init();
function init() { stage = new createjs.Stage("canvas"); stage.canvas.width = window.innerWidth; stage.canvas.height = window.innerHeight; objects = []; var colours = ["#fff", "rgb(44, 62, 80)", "rgb(192, 57, 43)"]; for (var i=0; i<20; ++i) {	createCircle(i * 20 + 30, Math.random() * 30 + 10, colours[Math.floor(Math.random() * colours.length)]); } createjs.Ticker.setFPS(30); createjs.Ticker.addEventListener("tick", stage);
}
function createCircle(radius, width, colour) { var s = new createjs.Shape(); s.graphics.ss(width).s(colour).a(0, 0, radius, 0, Math.random() * Math.PI + 1); objects.push(s); s.x = window.innerWidth / 2; s.y = window.innerHeight / 2; s.rotation = Math.random() * 360; stage.addChild(s); new TimelineLite({onComplete: function() { this.restart(); } }).to(s, Math.random() * 20 + 5, {rotation: s.rotation + (Math.random() <= 0.5 ? 360 : -360), ease: Linear.easeNone});
}
Infinite Rings - Script Codes
Infinite Rings - Script Codes
Home Page Home
Developer David Hartley
Username davidhartley
Uploaded November 18, 2022
Rating 3
Size 2,077 Kb
Views 10,120
Do you need developer help for Infinite Rings?

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!

David Hartley (davidhartley) Script Codes
Create amazing sales emails 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!