diff --git a/assets/css/style.css b/assets/css/style.css index 380dfd7..ee806b8 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -2050,5 +2050,32 @@ textarea.input-field { bottom: 80px; left: 0; } +} +/* Adding Hovering effect --------------------------- */ +.hover\:glaze:is(:hover, :focus-within)::after { + animation: glaze 1.5s ease-in-out; +} +.hover\:glaze { + overflow: hidden; +} +.hover\:glaze::after { + content: ""; + top: 0; + left: 0; + width: 200%; + background-image: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%,transparent); + transform: translate(-100%, -100%); + position: absolute; + transition: all 0.5s ease-in-out; + height: 300%; +} +@keyframes glaze { + 0% { + transform: translate(-100%, -100%); + opacity: 1; + }100% { + transform: translate(100%, 100%); + opacity: 0; + } } \ No newline at end of file diff --git a/index.html b/index.html index e97ba51..abcbaba 100644 --- a/index.html +++ b/index.html @@ -988,6 +988,7 @@

Upcoming Event

  • +
    Flavour so good you’ll try to eat with your eyes.
    - +
  • +
    Flavour so good you’ll try to eat with your eyes.
    - +
  • -
    +