Geometric
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 - 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});
}
Developer | Elliot Geno |
Username | pyrografix |
Uploaded | September 11, 2022 |
Rating | 3 |
Size | 1,977 Kb |
Views | 34,408 |
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!
Name | Size |
Happy Snowman | 3,960 Kb |
Following a Path | 2,019 Kb |
Dot Hopper - Pagination | 2,579 Kb |
Eye Bee M | 4,047 Kb |
Iris | 2,587 Kb |
Clock | 1,978 Kb |
TweenMax animating array object | 2,168 Kb |
Stained Glass | 2,127 Kb |
Swarm | 2,384 Kb |
Solar Explorer | 3,333 Kb |
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!
Name | Username | Size |
Console fun | Dviate | 1,500 Kb |
Zip Button test | Lje7462 | 1,932 Kb |
Drag and Drop Quiz | Cgspicer | 3,837 Kb |
React Recipe Box | Krokodill | 5,347 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
Toggling Divs with jQuery | Yying6 | 1,967 Kb |
A Pen by Shidhin | Shidhincr | 5,015 Kb |
SVG Icons Template | Legofsalmon | 2,618 Kb |
Weather App | OmranAbazid | 2,596 Kb |
CSS Tooltips | Darylldoyle | 2,599 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!