Animate mempool block viz reversal
This commit is contained in:
parent
d07bf30737
commit
21db64b2a5
@ -46,18 +46,9 @@ export default class BlockScene {
|
||||
this.orientation = orientation;
|
||||
this.flip = flip;
|
||||
this.dirty = true;
|
||||
const startTime = performance.now();
|
||||
Object.values(this.txs).forEach(txView => {
|
||||
this.saveGridToScreenPosition(txView);
|
||||
this.applyTxUpdate(txView, {
|
||||
display: {
|
||||
position: txView.screenPosition,
|
||||
color: txView.getColor()
|
||||
},
|
||||
duration: 0
|
||||
});
|
||||
this.setTxOnScreen(txView, startTime, 0);
|
||||
});
|
||||
if (this.initialised && this.scene) {
|
||||
this.updateAll(performance.now(), 50);
|
||||
}
|
||||
}
|
||||
|
||||
// Destroy the current layout and clean up graphics sprites without any exit animation
|
||||
|
@ -128,7 +128,7 @@ h1 {
|
||||
|
||||
.time-ltr .next-previous-blocks {
|
||||
.nav-arrow {
|
||||
transform: rotate(180deg);
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.nav-arrow.next {
|
||||
order: 2;
|
||||
|
@ -34,7 +34,6 @@
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 40px;
|
||||
transition: left 2s;
|
||||
}
|
||||
|
||||
.block-body {
|
||||
|
@ -94,10 +94,10 @@
|
||||
outline: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
transition: transform 1s;
|
||||
}
|
||||
|
||||
.blockchain-wrapper.ltr-transition .blocks-wrapper {
|
||||
.blockchain-wrapper.ltr-transition .blocks-wrapper,
|
||||
.blockchain-wrapper.ltr-transition .time-toggle {
|
||||
transition: transform 1s;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user