mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-28 02:47:55 +00:00
Add a ping animation on map, hide "The Maelstorm" (#36)
This commit is contained in:
@@ -15,6 +15,16 @@
|
||||
transition: border-color 0.25s linear;
|
||||
}
|
||||
|
||||
.Node-Location-ping {
|
||||
position: absolute;
|
||||
left: 2px;
|
||||
top: 2px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 1px solid transparent;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.Node-Location-odd {
|
||||
border-color: #bbb;
|
||||
}
|
||||
@@ -24,6 +34,13 @@
|
||||
border-color: #d64ca8;
|
||||
}
|
||||
|
||||
.Node-Location-synced .Node-Location-ping {
|
||||
border: 1px solid #fff;
|
||||
border-radius: 30px;
|
||||
display: block;
|
||||
animation: ping 1s forwards;
|
||||
}
|
||||
|
||||
.Node-Location:hover {
|
||||
z-index: 3;
|
||||
border-color: #fff;
|
||||
@@ -55,3 +72,21 @@
|
||||
.Node-Location-details td:nth-child(even) {
|
||||
padding-left: 0.2em;
|
||||
}
|
||||
|
||||
@keyframes ping {
|
||||
from {
|
||||
left: 2px;
|
||||
right: 2px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: rgba(255,255,255,1);
|
||||
}
|
||||
|
||||
to {
|
||||
left: -13px;
|
||||
top: -13px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-color: rgba(255,255,255,0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ class Location extends React.Component<AppState.Node & Location.Position, Locati
|
||||
{
|
||||
this.state.hover ? this.renderDetails(location) : null
|
||||
}
|
||||
<div className="Node-Location-ping" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user