Skip to content

Commit

Permalink
Animera mera
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed May 12, 2024
1 parent d7625cb commit 76114fd
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion resources/views/components/events-map.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ className: 'EventsMap-marker-icon EventsMap-marker-icon--far',
var markerIconNear = L.divIcon({
className: 'EventsMap-marker-icon EventsMap-marker-icon--near',
iconSize: [25, 25],
html: ''
html: '<span class="EventsMap-marker-icon-inner"></span>'
});
class EventsMap {
Expand Down Expand Up @@ -302,6 +302,9 @@ class EventsMap {
background-color: var(--color-red);
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, .25);
display: flex;
align-items: center;
justify-content: center;
}
.EventsMap-marker-icon--near {
Expand Down Expand Up @@ -339,6 +342,33 @@ class EventsMap {
.EventsMap-marker-contentLink {}
.EventsMap-marker-icon-inner {
display: block;
position: absolute;
width: 25px;
height: 25px;
background-color: var(--color-red-2);
border-radius: 50%;
animation: ease-in-out markerPulse 2s infinite;
}
@keyframes markerPulse {
0% {
transform: scale(1);
opacity: 0;
}
50% {
transform: scale(1.2);
opacity: .5;
}
100% {
transform: scale(1.5);
opacity: 0;
}
}
@keyframes fadein {
from {
opacity: 0;
Expand Down

0 comments on commit 76114fd

Please sign in to comment.