Skip to content

Commit 1d2b8ab

Browse files
committed
Refine banner animation and styling details
1 parent b722c78 commit 1d2b8ab

File tree

3 files changed

+10
-44
lines changed

3 files changed

+10
-44
lines changed

@theme/components/Navbar/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import arrowUpRight from "../../../static/img/icons/arrow-up-right-custom.svg";
1111

1212
const alertBanner = {
1313
show: true,
14-
message: "XRP Ledger Apex 2025",
14+
message: "XRP LEDGER APEX 2025",
1515
button: "GET TICKETS",
1616
link: "https://www.xrpledgerapex.com/?utm_source=xrplwebsite&utm_medium=direct&utm_campaign=xrpl-event-ho-xrplapex-glb-2025-q1_xrplwebsite_ari_arp_bf_rsvp&utm_content=cta_btn_english_gettickets",
1717
date: "JUNE 10-12",

static/css/devportal2024-v1.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/_top-banner.scss

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
text-decoration: none;
1414
color: $white;
1515
.button-icon{
16-
animation: iconJitter 1s ease-in-out forwards;
16+
animation: iconJitter 0.7s ease-in-out forwards;
1717
transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
1818
}
1919
}
@@ -62,6 +62,7 @@
6262
gap: 0px !important;
6363
flex-direction: column;
6464
text-align: left;
65+
line-height: 21px;
6566
}
6667
.banner-button{
6768
align-self: baseline;
@@ -94,32 +95,6 @@
9495
gap: 32px;
9596
}
9697

97-
.ticket-button {
98-
border: 1px solid var(--XRPL-Primary-White, #fff);
99-
display: flex;
100-
justify-content: center;
101-
align-items: center;
102-
gap: 6px;
103-
border-radius: 3141.892px;
104-
background: inherit;
105-
color: #FFF;
106-
text-align: center;
107-
letter-spacing: -0.16px;
108-
padding: 8px 16px;
109-
font: 600 15px/1 Work Sans ;
110-
cursor: pointer;
111-
white-space: nowrap;
112-
text-decoration: none;
113-
transform-origin: center;
114-
transition: background-color 0.3s ease, color 0.3s ease;
115-
116-
@media (max-width: 564px) {
117-
font: 600 9px/1 Work Sans ;
118-
width: 117px;
119-
height: 27px;
120-
padding: 6px 12px;
121-
}
122-
}
12398

12499
.button-icon {
125100
transform-style: preserve-3d;
@@ -134,20 +109,11 @@
134109
}
135110

136111
@keyframes iconJitter {
137-
0% {
138-
transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(22deg) skew(0deg, 0deg);
112+
from {
113+
transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateZ(0deg) skew(0deg, 0deg);
139114
}
140-
141-
40% {
142-
transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(55deg) skew(0deg, 0deg);
143-
}
144-
145-
70% {
146-
transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(40deg) skew(0deg, 0deg);
147-
}
148-
149-
100% {
150-
transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(45deg) skew(0deg, 0deg);
115+
to {
116+
transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateZ(45deg) skew(0deg, 0deg);
151117
}
152118
}
153119

@@ -158,7 +124,7 @@
158124
}
159125

160126
.button-icon {
161-
animation: iconJitter 1s ease-in-out;
127+
animation: iconJitter 0.7s ease-in-out;
162128
animation-iteration-count: 1;
163129
transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
164130
}
@@ -172,6 +138,6 @@
172138
}
173139
/* After the banner has been hovered once, on unhover run the reverse animation */
174140
.web-banner.has-hover:not(:hover) .button-icon {
175-
animation: iconReturn 1s ease-in-out forwards;
141+
animation: iconReturn 0.7s ease-in-out forwards;
176142
transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
177143
}

0 commit comments

Comments
 (0)