.anim3-particle { $side: 20px; background: url('../res/seahorse.svg') no-repeat center center #aaa; background-size: $side $side; border-radius: $side / 2; color: #fff; height: $side; line-height: $side; margin: #{-$side / 2} 0 0 #{-$side / 2}; position: absolute; text-align: center; width: $side; z-index: 1; &::after { border: 50px solid transparent; border-right-color: lightgreen; content: ' '; height: 0; left: -30px; opacity: 0.5; position: absolute; top: -40px; width: 0; } } .anim3-movement-circle { border: 2px dotted darkturquoise; position: absolute; transition: all 0.2s; z-index: 0; &:after { background: darkturquoise; border-radius: 2px; content:' '; height: 4px; left: 50%; margin-left: -2px; margin-top: -2px; position: absolute; top: 50%; width: 4px; } }