Last active: 2 years ago
const SpotItem = styled.div<{
min?: number;
max?: number;
}>`
${({ min, max }) =>
min != null &&
max != null &&
css`
animation: 1s ease-in-out 1s infinite alternate spot-scale;
@keyframes spot-scale {
from {
transform: ${`scale(${min})`};
}
to {
transform: ${`scale(${max})`};
}
}
`}
`;