Skip to content

Commit e75de2a

Browse files
author
hoang.tran12
committed
border fancy css
1 parent a90e731 commit e75de2a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

popup/styles/style.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,37 @@ a:hover {
471471
max-height: 95%;
472472
}
473473

474+
/* --------- border fancy --------- */
475+
.border-fancy:after {
476+
content: "";
477+
background: linear-gradient(45deg, red, #ff9a00 10%, #d0de21 20%, #4fdc4a 30%, #3fdad8 40%, #2fc9e2 50%, #1c7fee 60%, #5f15f2 70%, #ba0cf8 80%, #fb07d9 90%, red) repeat 0% 0%/300% 100%;
478+
position: absolute;
479+
inset: -1px;
480+
border-radius: 8px;
481+
-webkit-filter: blur(8px);
482+
filter: blur(8px);
483+
-webkit-transform: translateZ(-1px);
484+
transform: translateZ(-1px);
485+
-webkit-animation: border-fancy 6s linear infinite;
486+
animation: border-fancy 6s linear infinite;
487+
pointer-events: none;
488+
z-index: -1;
489+
}
490+
491+
@keyframes border-fancy {
492+
0% {
493+
background-position: 0 50%
494+
}
495+
496+
50% {
497+
background-position: 100% 50%
498+
}
499+
500+
to {
501+
background-position: 0 50%
502+
}
503+
}
504+
474505
/* --------- scrollbar --------- */
475506
/* width */
476507
::-webkit-scrollbar {

0 commit comments

Comments
 (0)