CSS Coordinates
How do I make an css coordinates?
Needed a change from all the pixel art, found this as a GIF, thought it would look better in CSS. (http://howzyerteeth.beacondeacon.com/Fibonacci/). What is a css coordinates? How do you make a css coordinates? This script and codes were developed by ZeroSpree on 13 July 2022, Wednesday.
CSS Coordinates - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Coordinates</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{background:#fdfdfd}
*{box-sizing:border-box;}
*::before, *::after{content:'';position:absolute;}
.ct{margin:100px auto;position:relative;width:300px;height:300px}
/*Blue big circle and it's diameter coordinates*/
.circle-large{width:300px;height:300px;position:relative;border-radius:100%;border:1px solid #3498db}
.circle-large::before{background:#3498db;top:50%;width:299px;height:1px;}
.circle-large::after{background:#3498db;left:50%;top:0;width:1px;height:299px;}
/*Smaller, orange, centered circle*/
.circle-small{width:148px;height:148px;border-radius:100%;box-shadow:0 0 0 1px #e67e22;position:absolute;top:75px;left:75px;z-index:2;
animation:counterRotate 8s infinite linear;}
/*Tiny orange circle that spins on circle-small's side*/
.bullseye{width:11px;height:11px;border:1px solid #e67e22;border-radius:100%;position:absolute;left:50%;margin-left:-5px;margin-top:-6px;
animation:rotate 4s infinite linear}
.bullseye::before{width:149px;height:149px;left:-71px;top:-71px;border-radius:100%;border:1px solid #7f8c8d} .axis{position:absolute;background:#7f8c8d;border:0;z-index:2;margin:0} .axis.horizontal{top:4px;left:-145px;width:300px;height:1px} .axis.vertical{top:-145px;left:4px;height:300px;width:1px} .axis::before, .axis::after{width:9px;height:9px;background:#7f8c8d;border-radius:100%} .axis::before{top:-4px;left:-4px;} .axis::after{bottom:-4px;right:-4px} .bullet{width:11px;height:11px;border-radius:100%;border:1px solid #8e44ad;position:absolute;top:69px;left:-5px} .bullet:nth-child(2){top:219px}
/*Orange ellipses*/
.ellipse{border:1px solid #e67e22;position:absolute;border-radius:100%;width:450px;height:150px;top:75px;left:-75px;}
.ellipse:nth-child(3){transform:rotate(45deg)}
.ellipse:nth-child(4){transform:rotate(90deg)}
.ellipse:nth-child(5){transform:rotate(135deg)}
@keyframes counterRotate { to{transform: rotate(-360deg)} }
@keyframes rotate { to{transform: rotate(360deg)} } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="ct"> <div class="circle-large"> <div class="circle-small"> <div class="bullseye"> <div class="axis horizontal"></div> <div class="axis vertical"> <div class="bullet"></div> <div class="bullet"></div> </div> </div> </div> </div> <div class="ellipse"></div> <div class="ellipse"></div> <div class="ellipse"></div> <div class="ellipse"></div>
</div> <script src="js/index.js"></script>
</body>
</html>
CSS Coordinates - Script Codes CSS Codes
body{background:#fdfdfd}
*{box-sizing:border-box;}
*::before, *::after{content:'';position:absolute;}
.ct{margin:100px auto;position:relative;width:300px;height:300px}
/*Blue big circle and it's diameter coordinates*/
.circle-large{width:300px;height:300px;position:relative;border-radius:100%;border:1px solid #3498db}
.circle-large::before{background:#3498db;top:50%;width:299px;height:1px;}
.circle-large::after{background:#3498db;left:50%;top:0;width:1px;height:299px;}
/*Smaller, orange, centered circle*/
.circle-small{width:148px;height:148px;border-radius:100%;box-shadow:0 0 0 1px #e67e22;position:absolute;top:75px;left:75px;z-index:2;
animation:counterRotate 8s infinite linear;}
/*Tiny orange circle that spins on circle-small's side*/
.bullseye{width:11px;height:11px;border:1px solid #e67e22;border-radius:100%;position:absolute;left:50%;margin-left:-5px;margin-top:-6px;
animation:rotate 4s infinite linear}
.bullseye::before{width:149px;height:149px;left:-71px;top:-71px;border-radius:100%;border:1px solid #7f8c8d} .axis{position:absolute;background:#7f8c8d;border:0;z-index:2;margin:0} .axis.horizontal{top:4px;left:-145px;width:300px;height:1px} .axis.vertical{top:-145px;left:4px;height:300px;width:1px} .axis::before, .axis::after{width:9px;height:9px;background:#7f8c8d;border-radius:100%} .axis::before{top:-4px;left:-4px;} .axis::after{bottom:-4px;right:-4px} .bullet{width:11px;height:11px;border-radius:100%;border:1px solid #8e44ad;position:absolute;top:69px;left:-5px} .bullet:nth-child(2){top:219px}
/*Orange ellipses*/
.ellipse{border:1px solid #e67e22;position:absolute;border-radius:100%;width:450px;height:150px;top:75px;left:-75px;}
.ellipse:nth-child(3){transform:rotate(45deg)}
.ellipse:nth-child(4){transform:rotate(90deg)}
.ellipse:nth-child(5){transform:rotate(135deg)}
@keyframes counterRotate { to{transform: rotate(-360deg)} }
@keyframes rotate { to{transform: rotate(360deg)} }
CSS Coordinates - Script Codes JS Codes
/*
Inspired by a gif on this page: http://howzyerteeth.beacondeacon.com/Fibonacci/
//EDIT
---------------------
Noticed a small glitch in my original design, so I refactored the entire thing to work exactly as it should. Also, to make more sense.
My original pen (http://codepen.io/zerospree/pen/HdekE) was based on Lea Verou's "Moving an element along a circle technique". Read it here:
http://lea.verou.me/2012/02/moving-an-element-along-a-circle/
(in that example, the smaller orange circle doesn't need to spin, which is pretty neat. Also, buggy because of my crappy math skills.)
*/
Developer | ZeroSpree |
Username | zerospree |
Uploaded | July 13, 2022 |
Rating | 4.5 |
Size | 3,589 Kb |
Views | 149,776 |
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 |
Steve Jobs | 4,968 Kb |
CodePen Stats Checker | 9,083 Kb |
Mr. C | 20,483 Kb |
SCSS Bowser from box-shadows | 17,079 Kb |
RIP flashdrives | 3,657 Kb |
Hexagon exercise. | 2,615 Kb |
Simple CSS3 particles animation | 2,810 Kb |
Just another Button | 2,413 Kb |
Pure CSS Apple Logo | 6,592 Kb |
Flip - card memory game. | 7,947 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 |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Box Shadow Effects | Retrofuturistic | 2,143 Kb |
Simple search using AngularJS | Haykou | 1,802 Kb |
Cloud upload | Jaflo | 2,774 Kb |
Project -Show the Local Weather | Luciano_Britis | 2,583 Kb |
The Fly | GianlucaGuarini | 3,405 Kb |
CSS3 Button Examples | Volusion | 3,377 Kb |
Add This API | ThatGuySam | 2,848 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
NT Tribute | Skybutterfly | 2,850 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!