Exifly / ApiVault

Your gateway to a world of public APIs.
https://apivault.dev
Other
435 stars 39 forks source link

Little transition on cards hover effect #136

Closed gdjohn4s closed 1 year ago

gdjohn4s commented 1 year ago

Is your feature request related to a problem? Please describe.

No, it is a modification related to the hover effect on a card's exit. The difference may seem imperceptible, but I believe that this small difference can make the user experience better.

Describe the solution you'd like

Currently, when the user moves the mouse from one card to another or from a card to an element outside the cards, the hover effect disappears suddenly. With this modification, the hover effect would disappear through a transition. For this modification, we have tried various effects and think that this is the one to use:

Concept video

Screen Recording 2023-05-09 at 16 15 59

iamjamesfrancis commented 1 year ago

Hi @gdjohn4s , Can I work on this issue ?

gdjohn4s commented 1 year ago

Yes of course @iamjamesfrancis Thanks!

iamjamesfrancis commented 1 year ago

@gdjohn4s , Please check the below video. If these changes are good enough I'll create PR. . CSS Properties

Card.vue:155

  .glass-card {
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    background-color: var(--bg-card-glass);
    border-radius: 12px;
    border: 1px solid var(--border-color-cards);
+   transition-property: scale, background-color;
+   transition: 0.3s ease !important;
  }

https://github.com/Exifly/ApiVault/assets/55175085/3db40d94-7525-44d9-98f0-0b7790fa6ae3

gdjohn4s commented 1 year ago

@iamjamesfrancis Please open a PR so we can review your code and request changes if needed 😄 Thanks

iamjamesfrancis commented 1 year ago

@gdjohn4s Sure 💯

FlavioAdamo commented 1 year ago

@iamjamesfrancis any update?

iamjamesfrancis commented 1 year ago

@FlavioAdamo, Today EOD IST I'll submit the PR.