make copeme popup on center of element

This commit is contained in:
edbrz9 2023-01-01 21:55:32 +01:00
parent b0b52e5388
commit 88f014eb51
1 changed files with 13 additions and 12 deletions

View File

@ -1,6 +1,9 @@
section.copyme-containter { section.copyme-containter {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
} }
span.copypopup { span.copypopup {
@ -9,14 +12,12 @@ span.copypopup {
color: white; color: white;
font-size: 1.5rem; font-size: 1.5rem;
padding: 10px; padding: 10px;
right: -20px;
top: -5px;
transform: rotate(12deg); transform: rotate(12deg);
opacity: 0; opacity: 0;
} }
section.copyme-containter span.success { section.copyme-containter span.success {
animation: fade-in 2s forwards; animation: fade-in 2s forwards;
} }
@keyframes fade-in { @keyframes fade-in {