Geometric

Developer
Size
1,977 Kb
Views
34,408

How do I make an geometric?

What is a geometric? How do you make a geometric? This script and codes were developed by Elliot Geno on 11 September 2022, Sunday.

Geometric Previews

Geometric - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Geometric</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 500">	<defs>	<rect id="shape" stroke="cyan" stroke-width="2" fill="none" width="100" height="100"/>	</defs>	<g class="container">	</g>
</svg> <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Geometric - Script Codes CSS Codes

body{	margin:0;	background:black;
}
svg{	width:100%;	height:100%;	position:fixed;	top:0;	left:0;
}

Geometric - Script Codes JS Codes

var container = document.querySelector(".container");
var template = document.querySelector(".template");
var shape = document.querySelector("#shape");
var numShapes = 12;
var radius = 100;
var centerX = 200;
var centerY = 200;
var increment =(Math.PI*2)/numShapes;
var angleIncrement = 360/numShapes;
for(var i = 0; i< numShapes; i++){	var shape = shape.cloneNode(true);	container.appendChild(shape);	var angle = increment*i;	TweenMax.set(shape,{x:(Math.cos(angle)*radius)+centerX,y:(Math.sin(angle)*radius)+centerY,rotation:45});
}
Geometric - Script Codes
Geometric - Script Codes
Home Page Home
Developer Elliot Geno
Username pyrografix
Uploaded September 11, 2022
Rating 3
Size 1,977 Kb
Views 34,408
Do you need developer help for Geometric?

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!

Elliot Geno (pyrografix) Script Codes
Create amazing video scripts 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!