adidionado efeito na parte do PIX
Signed-off-by: Rodrigo Bertoldo de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
abaef69b98
commit
38a8b1b614
1 file changed
+153
-7
+153
-7
@@ -174,6 +174,26 @@
|
|||||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: none;
|
border: none;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pix-button::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgba(255, 255, 255, 0.3);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
transition: width 0.6s, height 0.6s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pix-button:hover::before {
|
||||||
|
width: 300px;
|
||||||
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pix-button:hover {
|
.pix-button:hover {
|
||||||
@@ -182,6 +202,10 @@
|
|||||||
background: linear-gradient(135deg, #00A86B, #32BCAD);
|
background: linear-gradient(135deg, #00A86B, #32BCAD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pix-button:active {
|
||||||
|
transform: translateY(-1px) scale(0.98);
|
||||||
|
}
|
||||||
|
|
||||||
/* Modal PIX */
|
/* Modal PIX */
|
||||||
.modal {
|
.modal {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -190,14 +214,25 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: rgba(0, 0, 0, 0.8);
|
background: rgba(0, 0, 0, 0);
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
transition: background 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal.active {
|
.modal.active {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
animation: fadeIn 0.3s ease forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from {
|
||||||
|
background: rgba(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
@@ -207,6 +242,43 @@
|
|||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
||||||
|
transform: translateY(30px) scale(0.9);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal.active .modal-content {
|
||||||
|
animation: slideUpScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideUpScale {
|
||||||
|
0% {
|
||||||
|
transform: translateY(30px) scale(0.9);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(0) scale(1);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeOut {
|
||||||
|
from {
|
||||||
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background: rgba(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideDownScale {
|
||||||
|
0% {
|
||||||
|
transform: translateY(0) scale(1);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(30px) scale(0.9);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-header {
|
.modal-header {
|
||||||
@@ -224,6 +296,14 @@
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-input:focus {
|
||||||
|
border-color: #32BCAD;
|
||||||
|
box-shadow: 0 0 0 3px rgba(50, 188, 173, 0.2);
|
||||||
|
transform: scale(1.02);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-buttons {
|
.modal-buttons {
|
||||||
@@ -240,6 +320,26 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-button::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgba(255, 255, 255, 0.4);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
transition: width 0.5s, height 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-button:hover::after {
|
||||||
|
width: 300px;
|
||||||
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-button.generate {
|
.modal-button.generate {
|
||||||
@@ -257,6 +357,10 @@
|
|||||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-button:active {
|
||||||
|
transform: translateY(0) scale(0.98);
|
||||||
|
}
|
||||||
|
|
||||||
.pix-code-area {
|
.pix-code-area {
|
||||||
display: none;
|
display: none;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
@@ -267,10 +371,24 @@
|
|||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
transform: translateY(-10px);
|
||||||
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pix-code-area.active {
|
.pix-code-area.active {
|
||||||
display: block;
|
display: block;
|
||||||
|
animation: slideInFade 0.4s ease forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideInFade {
|
||||||
|
from {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-notification {
|
.copy-notification {
|
||||||
@@ -278,10 +396,24 @@
|
|||||||
color: #00A86B;
|
color: #00A86B;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: none;
|
display: none;
|
||||||
|
transform: scale(0.8);
|
||||||
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-notification.active {
|
.copy-notification.active {
|
||||||
display: block;
|
display: block;
|
||||||
|
animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes popIn {
|
||||||
|
from {
|
||||||
|
transform: scale(0.8);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: scale(1);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ícones pequenos */
|
/* Ícones pequenos */
|
||||||
@@ -463,15 +595,29 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
function openPixModal() {
|
function openPixModal() {
|
||||||
document.getElementById('pixModal').classList.add('active');
|
const modal = document.getElementById('pixModal');
|
||||||
document.getElementById('pixValue').focus();
|
modal.classList.add('active');
|
||||||
|
setTimeout(() => {
|
||||||
|
document.getElementById('pixValue').focus();
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
function closePixModal() {
|
function closePixModal() {
|
||||||
document.getElementById('pixModal').classList.remove('active');
|
const modal = document.getElementById('pixModal');
|
||||||
document.getElementById('pixValue').value = '';
|
const modalContent = modal.querySelector('.modal-content');
|
||||||
document.getElementById('pixCodeArea').classList.remove('active');
|
|
||||||
document.getElementById('copyNotification').classList.remove('active');
|
// Animação de saída
|
||||||
|
modalContent.style.animation = 'slideDownScale 0.3s ease forwards';
|
||||||
|
modal.style.animation = 'fadeOut 0.3s ease forwards';
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
modal.classList.remove('active');
|
||||||
|
modal.style.animation = '';
|
||||||
|
modalContent.style.animation = '';
|
||||||
|
document.getElementById('pixValue').value = '';
|
||||||
|
document.getElementById('pixCodeArea').classList.remove('active');
|
||||||
|
document.getElementById('copyNotification').classList.remove('active');
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
function generatePix() {
|
function generatePix() {
|
||||||
|
|||||||
Reference in new issue
Block a user