Hello I added animation to my order button
But It doesn’t start when loaded the page , I need first to hover it to start …
I am ready to send full buy-button.liquid for advanced help to run smoothly.
site: privateviewscreen.com password: 16
Hello I added animation to my order button
But It doesn’t start when loaded the page , I need first to hover it to start …
I am ready to send full buy-button.liquid for advanced help to run smoothly.
site: privateviewscreen.com password: 16
Replace the entire animation css code with this:
.product-form__submit {
position: relative !important;
overflow: hidden !important;
color: #ffffff !important;
border: none !important;
border-radius: 100px !important;
font-weight: 500 !important;
letter-spacing: -0.01em !important;
transition: transform 0.15s ease, box-shadow 0.2s ease !important;
cursor: pointer;
background: linear-gradient(110deg, #1555c4 0%, #1c6ef2 100%) !important;
box-shadow:
0 4px 16px rgba(28, 110, 242, 0.42),
0 1px 4px rgba(28, 110, 242, 0.22) !important;
}
@keyframes shimmer-sweep {
0% { transform: translateX(-200%); }
50% { transform: translateX(300%); }
100% { transform: translateX(-200%); }
}
.product-form__submit::before {
display: block !important;
content: '' !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 60% !important;
height: 100% !important;
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%) !important;
animation: shimmer-sweep 3s ease-in-out infinite !important;
pointer-events: none !important;
z-index: 1 !important;
}
.product-form__submit::after {
display: none !important;
}
.product-form__submit:hover:not([disabled]):not(.loading) {
transform: translateY(-1.5px) !important;
box-shadow:
0 10px 28px rgba(28, 110, 242, 0.52),
0 2px 8px rgba(28, 110, 242, 0.3) !important;
}
.product-form__submit:active:not([disabled]) {
transform: scale(0.965) translateY(0) !important;
box-shadow:
0 2px 10px rgba(28, 110, 242, 0.28) !important;
}
.product-form__submit[disabled] {
background: #d2d2d7 !important;
animation: none !important;
box-shadow: none !important;
cursor: not-allowed !important;
transform: none !important;
color: #86868b !important;
}
.product-form__submit.loading {
background: #6aa3f8 !important;
pointer-events: none !important;
box-shadow: 0 4px 14px rgba(106, 163, 248, 0.3) !important;
}
Thank you so much! <3