Skip to content

Commit

Permalink
ABS - elipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Mar 1, 2023
1 parent 6534001 commit 4824201
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
37 changes: 35 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@
}

.level-1 {
width: calc(var(--distance) * 2) + 100;
height: calc(var(--distance) * 2);
width: 40px;
height: 300px;
rotate: -90deg;
}
.level-2 {
width: calc(var(--distance2) * 2);
Expand Down Expand Up @@ -184,4 +185,36 @@
width: var(--xl);
height: var(--xl);
}
.rad {
width: 1px;
height: 1px;
border-radius: 50%;
display: grid;
background-color: rgb(152, 21, 21);
border: 1px solid black;
align-items: center;
justify-items: center;
grid-area: 1/1/1/1;
}
.rad:nth-child(1) {
transform: translate(20px, 0)
}
.rad:nth-child(2) {
transform: translate(17.320508075688775px, 74.99999999999999px)
}
.rad:nth-child(3) {
transform: translate(10.000000000000002px, 129.9038105676658px)
}
.rad:nth-child(4) {
transform: translate(1.2246467991473533px, 150px)
}
.rad:nth-child(5) {
transform: translate(-9.999999999999996px, 129.9px)
}
.rad:nth-child(6) {
transform: translate(-10px, -129px)
}
.rad:nth-child(7) {
transform: translate(10px, -129px)
}

13 changes: 9 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
<body>
<div class="ring">
<div class="level-1 items-3">
<div class="rad"></div>
<div class="rad"></div>
<div class="rad"></div>
<div class="rad"></div>
<div class="rad"></div>
<div class="rad"></div>
<div class="rad"></div>

<div class="item m">
one
</div>
Expand Down Expand Up @@ -37,10 +45,7 @@
<div class="item sm d50">e</div>
</div>
</div>
<script>
let element = document.querySelector('.giros')
console.log(getComputedStyle(element).getPropertyValue('transform'))
</script>



</body>
Expand Down

0 comments on commit 4824201

Please sign in to comment.