-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathperformance.css
More file actions
57 lines (50 loc) · 1.15 KB
/
performance.css
File metadata and controls
57 lines (50 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Performance optimizations for UI rendering */
/* Enable hardware acceleration for animations and transitions */
.wallet-item,
.selected-wallet-chip,
.bot-nav-button,
.wallet-item.selected,
.modal,
.form-actions button,
.console,
.dropdown-menu,
button {
transform: translateZ(0);
backface-visibility: hidden;
perspective: 1000px;
will-change: transform, opacity;
}
/* Optimize transitions to use only opacity and transform for better performance */
.modal {
transition: opacity 0.2s ease-out, transform 0.2s ease-out !important;
}
/* Reduce repaints with stacking contexts */
.wallet-grid,
.console-section,
.bot-form {
contain: content;
}
/* Optimize scrolling performance */
.console,
.wallet-grid,
.bot-nav,
body {
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
}
/* Prevent layout thrashing during animations */
.wallet-item,
.bot-nav-button {
contain: layout style;
}
/* Reduce repaints for hover effects */
button:hover,
.bot-nav-button:hover,
.wallet-item:hover {
transition: background-color 0.15s ease-out;
}
/* Optimize fixed elements */
.header {
transform: translateZ(0);
will-change: transform;
}