for beginners
BOXY SVG
* With CodePen
200px
200px
200px
200px
r
r
POINT
A
B
POINT
C
0
POINT
C
0
POINT
body {
background: radial-gradient(ellipse at bottom, #1b2735, #090a0f);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
circle {
fill: none;
stroke: #fff;
stroke-width: 10px;
animation: rotation 2000ms ease-in-out infinite alternate;
}
@keyframes rotation {
0% {
stroke-dasharray: 100 100;
stroke-dashoffset: 70;
}
100% {
stroke-dasharray: 20 20;
stroke-dashoffset: -600;
}
}
svg {
filter: drop-shadow(0 0 10px #00ccff);
}
svg {
filter: drop-shadow(100px 0 0 #00ccff);
}
svg {
transform: translateX(-50px);
filter: drop-shadow(100px 0 0 #00ccff);
}