Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ <h2 class="section-title headline-1 text-center">Upcoming Event</h2>

<li>
<div class="event-card has-before ">
<div class="event-card has-before hover:glaze">

<div class="card-banner img-holder" style="--width: 350; --height: 450;">
<img src="./assets/images/event-1.jpg" width="350" height="450" loading="lazy"
Expand All @@ -1003,12 +1004,13 @@ <h3 class="card-title title-2 text-center">
Flavour so good you’ll try to eat with your eyes.
</h3>
</div>

</div>
</div>
</li>

<li>
<div class="event-card has-before ">
<div class="event-card has-before hover:glaze">

<div class="card-banner img-holder" style="--width: 350; --height: 450;">
<img src="./assets/images/event-2.jpg" width="350" height="450" loading="lazy"
Expand All @@ -1024,12 +1026,12 @@ <h3 class="card-title title-2 text-center">
Flavour so good you’ll try to eat with your eyes.
</h3>
</div>

</div>
</div>
</li>

<li>
<div class="event-card has-before hover:shine">
<div class="event-card has-before hover:glaze">

<div class="card-banner img-holder" style="--width: 350; --height: 450;">
<img src="./assets/images/event-3.jpg" width="350" height="450" loading="lazy"
Expand Down