@import "src/styles/variables"; @keyframes move_1 { 0% { transform: scale(0) translate(0, 0); opacity: 0; } 50% { transform: scale(1) translate(5px, -5px); opacity: 1; } 100% { transform: scale(1.2) translate(-5px, -10px); opacity: 0; } } @keyframes move_2 { 0% { transform: scale(0) translate(0, 0); opacity: 0; } 50% { transform: scale(1) translate(-5px, -5px); opacity: 1; } 100% { transform: scale(1.6) translate(5px, -10px); opacity: 0; } } .button { } .lab_wrapper { position: relative; bottom: -2px; .button:hover & { &:before,&:after { content: ' '; position: absolute; top: 1px; left: 10px; width: 2px; height: 2px; box-shadow: white 0 0 0 2px; border-radius: 4px; animation: move_1 0.5s infinite linear; } &:after { animation: move_2 0.5s -0.25s infinite linear; } } }