|
@@ -200,7 +200,11 @@ const Navbar = () => {
|
200
|
200
|
height: "100%",
|
201
|
201
|
paddingTop: "85%",
|
202
|
202
|
position: "relative",
|
203
|
|
- cursor: "pointer"
|
|
203
|
+ cursor: "pointer",
|
|
204
|
+ transition: "transform 0.3s ease",
|
|
205
|
+ ":hover": {
|
|
206
|
+ transform: "scale(1.1)"
|
|
207
|
+ }
|
204
|
208
|
}}
|
205
|
209
|
onClick={() => {
|
206
|
210
|
sessionStorage.setItem('amber-select-collection', title)
|
|
@@ -240,10 +244,13 @@ const Navbar = () => {
|
240
|
244
|
};
|
241
|
245
|
|
242
|
246
|
const displayCollectionList = (collection, productType) => {
|
243
|
|
- setDisplayCollection({
|
244
|
|
- productType,
|
245
|
|
- list: collection
|
246
|
|
- })
|
|
247
|
+ setDisplayCollection([])
|
|
248
|
+ setTimeout(() => {
|
|
249
|
+ setDisplayCollection({
|
|
250
|
+ productType,
|
|
251
|
+ list: collection
|
|
252
|
+ })
|
|
253
|
+ }, 200);
|
247
|
254
|
}
|
248
|
255
|
|
249
|
256
|
const hideCollectionList = () => {
|
|
@@ -261,11 +268,11 @@ const Navbar = () => {
|
261
|
268
|
":hover": {
|
262
|
269
|
backgroundColor: "rgba(255,255,255,1) !important",
|
263
|
270
|
backdropFilter: "none !important",
|
264
|
|
- '& .navItem':{
|
265
|
|
- color:"black !important"
|
|
271
|
+ '& .navItem': {
|
|
272
|
+ color: "black !important"
|
266
|
273
|
},
|
267
|
|
- '& .navItem:hover':{
|
268
|
|
- color:"#95AAC5 !important"
|
|
274
|
+ '& .navItem:hover': {
|
|
275
|
+ color: "#95AAC5 !important"
|
269
|
276
|
},
|
270
|
277
|
}
|
271
|
278
|
}}
|