Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8789b96ada | |||
| d8874f1164 | |||
| fb5cec7837 | |||
| 979acd4483 | |||
| d7ba0479f4 | |||
| 794631dcba | |||
| fe8fa11f91 |
@@ -134,14 +134,14 @@
|
|||||||
el.removeEventListener('transitionend', handle);
|
el.removeEventListener('transitionend', handle);
|
||||||
// Snap back without animation
|
// Snap back without animation
|
||||||
el.style.transition = 'none';
|
el.style.transition = 'none';
|
||||||
el.style.transform = `translateX(-50%) rotate(${angle}deg)`;
|
el.style.transform = `translateX(-50%) translateZ(0) rotate(${angle}deg)`;
|
||||||
void el.offsetWidth;
|
void el.offsetWidth;
|
||||||
el.style.transition = '';
|
el.style.transition = '';
|
||||||
};
|
};
|
||||||
el.addEventListener('transitionend', handle, { once: true });
|
el.addEventListener('transitionend', handle, { once: true });
|
||||||
el.style.transform = `translateX(-50%) rotate(${target}deg)`;
|
el.style.transform = `translateX(-50%) translateZ(0) rotate(${target}deg)`;
|
||||||
} else {
|
} else {
|
||||||
el.style.transform = `translateX(-50%) rotate(${angle}deg)`;
|
el.style.transform = `translateX(-50%) translateZ(0) rotate(${angle}deg)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
lastAngles[id] = angle;
|
lastAngles[id] = angle;
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
<div class="hand chronon" id="handChronon"></div>
|
<div class="hand chronon" id="handChronon"></div>
|
||||||
<div class="hand quantic" id="handQuantic"></div>
|
<div class="hand quantic" id="handQuantic"></div>
|
||||||
<div class="hand xeno" id="handXeno"></div>
|
<div class="hand xeno" id="handXeno"></div>
|
||||||
|
<div class="clock-center"></div>
|
||||||
<div class="clock-label">CoBiE Time</div>
|
<div class="clock-label">CoBiE Time</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -398,19 +398,26 @@
|
|||||||
box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), inset 0 0 40px rgba(255, 0, 255, 0.2);
|
box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), inset 0 0 40px rgba(255, 0, 255, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock::after {
|
.clock-center {
|
||||||
content: '';
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 1.2em;
|
width: calc(var(--clock-size) * 0.13);
|
||||||
height: 1.2em;
|
height: calc(var(--clock-size) * 0.13);
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%) translateZ(0);
|
||||||
background: url('logo.svg') center/contain no-repeat;
|
background: url('logo.svg') center/contain no-repeat;
|
||||||
background-color: #ffffff;
|
background-color: transparent;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
|
/* box-shadow: 0 0 8px rgba(0, 255, 255, 0.8); */
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1200px) {
|
||||||
|
.clock-center {
|
||||||
|
width: calc(var(--clock-size) * 0.085);
|
||||||
|
height: calc(var(--clock-size) * 0.085);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.clock-label {
|
.clock-label {
|
||||||
|
|||||||
Reference in New Issue
Block a user