1

lines in a circle

 2 years ago
source link: https://codepen.io/amit_sheen/pen/OJjmdJE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
0 unsaved changes
xxxxxxxxxx
<div class="rings">
  <div class="ring"></div>
  <div class="ring"></div>
  <div class="ring"></div>
  <div class="ring"></div>
  <div class="ring"></div>
</div>

CSS (SCSS)

CSS (SCSS)

xxxxxxxxxx
*, *::before, *::after {
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
body {
  background-color: #111;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rings {
  position: relative;
}
.ring {
  font-size: 40px;
  width: var(--size); height: var(--size);
  position: absolute;
  border-radius: 50%;
  background-image: repeating-linear-gradient(#fff 0, #555 0.1em, #fff 0.2em);
xxxxxxxxxx

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK