Capital/src/styles/globals.css
2025-01-04 16:20:15 +08:00

39 lines
609 B
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
.textmarker-effect {
position: relative;
}
.textmarker-effect:before {
position: absolute;
z-index: -1;
content: '';
background: var(--mui-palette-primary-main);
height: 20px;
left: 0;
bottom: 0;
width: 0%;
opacity: 0.5;
transition: all 0.5s;
}
.textmarker-effect:hover:before {
width: 100%;
}
.textmarker-effect.active:before {
animation: textmarker-effect-animation 0.5s ease-in-out;
animation-fill-mode: forwards;
}
@keyframes textmarker-effect-animation {
0% {
width: 0;
}
100% {
width: 100%;
}
}