Aleksmorshen commited on
Commit
b9f8f06
·
verified ·
1 Parent(s): 7d02603

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +46 -2
styles.css CHANGED
@@ -276,7 +276,29 @@ body {
276
  border-radius: 25px;
277
  font-weight: 600;
278
  cursor: pointer;
279
- transition: background 0.3s ease, transform 0.3s ease;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  }
281
 
282
  .add-to-cart-btn:hover {
@@ -409,7 +431,29 @@ body {
409
  border-radius: 25px;
410
  font-weight: 600;
411
  cursor: pointer;
412
- transition: background 0.3s ease, transform 0.3s ease;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
413
  }
414
 
415
  .calculate-btn:hover {
 
276
  border-radius: 25px;
277
  font-weight: 600;
278
  cursor: pointer;
279
+ transition: all 0.3s ease;
280
+ position: relative;
281
+ overflow: hidden;
282
+ }
283
+
284
+ .add-to-cart-btn::after {
285
+ content: '';
286
+ position: absolute;
287
+ width: 0;
288
+ height: 0;
289
+ background: rgba(255, 255, 255, 0.3);
290
+ border-radius: 50%;
291
+ transform: scale(0);
292
+ transition: transform 0.6s ease-out;
293
+ }
294
+
295
+ .add-to-cart-btn:active::after {
296
+ width: 200px;
297
+ height: 200px;
298
+ transform: scale(1);
299
+ left: 50%;
300
+ top: 50%;
301
+ transform: translate(-50%, -50%);
302
  }
303
 
304
  .add-to-cart-btn:hover {
 
431
  border-radius: 25px;
432
  font-weight: 600;
433
  cursor: pointer;
434
+ transition: all 0.3s ease;
435
+ position: relative;
436
+ overflow: hidden;
437
+ }
438
+
439
+ .calculate-btn::after {
440
+ content: '';
441
+ position: absolute;
442
+ width: 0;
443
+ height: 0;
444
+ background: rgba(255, 255, 255, 0.3);
445
+ border-radius: 50%;
446
+ transform: scale(0);
447
+ transition: transform 0.6s ease-out;
448
+ }
449
+
450
+ .calculate-btn:active::after {
451
+ width: 200px;
452
+ height: 200px;
453
+ transform: scale(1);
454
+ left: 50%;
455
+ top: 50%;
456
+ transform: translate(-50%, -50%);
457
  }
458
 
459
  .calculate-btn:hover {