onboarding: Add bouncing ? next to hotspots.

Fixes #8124.
Adds bouncing question mark with twice the frequency of the
pulse.
This commit is contained in:
Shubham Padia
2018-03-01 03:52:02 +05:30
committed by Tim Abbott
parent 6a07897d3a
commit 8722c755e3
2 changed files with 27 additions and 0 deletions

View File

@@ -181,6 +181,7 @@ function insert_hotspot_into_DOM(hotspot) {
'<div class="hotspot-icon" id="hotspot_' + hotspot.name + '_icon">' +
'<span class="dot"></span>' +
'<span class="pulse"></span>' +
'<div class="bounce"><span class="bounce-icon">?</span></div>' +
'</div>';
setTimeout(function () {

View File

@@ -43,6 +43,32 @@
}
}
.hotspot-icon .bounce {
-moz-animation: bounce 0.75s infinite;
-webkit-animation: bounce 0.75s infinite;
animation: bounce 0.75s infinite;
}
.hotspot-icon .bounce .bounce-icon {
position: absolute;
left: -5px;
bottom: 3px;
transform: rotate(7deg);
color: hsl(215, 47%, 50%);
font-size: 2.75em;
font-weight: 600;
}
@keyframes bounce {
0%, 100% {
-webkit-transform: translateY(0px);
}
50% {
-webkit-transform: translateY(4px);
}
}
/* popover */
.hotspot.overlay {
z-index: 104;