14
14
color : $white ;
15
15
.button-icon {
16
16
animation : iconJitter 1s ease-in-out forwards ;
17
+ transition : transform 0.7s cubic-bezier (0.16 , 1 , 0.3 , 1 );
17
18
}
18
19
}
19
20
color : $white !important ;
35
36
z-index : 0 ;
36
37
transform : scaleX (0 ); // Start scaled down to 0
37
38
transform-origin : left ; // Scale from the left edge
38
- transition : transform 1 s cubic-bezier (0.25 , 0.8 , 0.25 , 1 );
39
+ transition : transform 0.7 s cubic-bezier (0.7 , 0 , 0.84 , 0 );
39
40
will-change : transform ; // Hint for smoother animations
40
41
}
41
42
42
43
// On hover, scale to full width
43
44
& :hover ::after {
44
45
transform : scaleX (1 );
46
+ transition : transform 0.7s cubic-bezier (0.16 , 1 , 0.3 , 1 );
45
47
}
46
48
// Ensure direct children are above the pseudo-element
47
49
> * {
107
109
width : 12.5px ; // Scaled down from 13.8px
108
110
animation : none ;
109
111
transform : rotateZ (0deg );
110
- transition : transform 0.5 s ease-in-out ; // Adjust duration as needed
112
+ transition : transform 0.7 s cubic-bezier ( 0.16 , 1 , 0.3 , 1 ) ; // Adjust duration as needed
111
113
@media (max-width : 524px ) {
112
114
width : 9px ; // Scaled down from 10px
113
115
}
151
153
.button-icon {
152
154
animation : iconJitter 1s ease-in-out ;
153
155
animation-iteration-count : 1 ;
156
+ transition : transform 0.7s cubic-bezier (0.16 , 1 , 0.3 , 1 );
154
157
}
155
158
@keyframes iconReturn {
156
159
from {
163
166
/* After the banner has been hovered once, on unhover run the reverse animation */
164
167
.web-banner.has-hover :not (:hover ) .button-icon {
165
168
animation : iconReturn 1s ease-in-out forwards ;
169
+ transition : transform 0.7s cubic-bezier (0.16 , 1 , 0.3 , 1 );
166
170
}
0 commit comments