Skip to content

Commit c38e4e2

Browse files
devvaannshabose
authored andcommitted
feat: flash the rows a layers edit touched
1 parent 9d5a8f4 commit c38e4e2

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@
375375
box-shadow: inset 2px 0 0 fade(@layers-accent, 55%);
376376
}
377377

378+
.layers-node.layers-flash {
379+
animation: layers-flash-row 800ms ease-out;
380+
}
381+
378382
.layers-node {
379383
display: flex;
380384
align-items: center;
@@ -833,3 +837,24 @@ body.layers-dnd-invalid {
833837
display: block;
834838
}
835839
}
840+
841+
@keyframes layers-flash-row {
842+
0% {
843+
background-color: fade(@layers-accent, 45%);
844+
}
845+
846+
60% {
847+
background-color: fade(@layers-accent, 32%);
848+
}
849+
850+
100% {
851+
background-color: transparent;
852+
}
853+
}
854+
855+
@media (prefers-reduced-motion: reduce) {
856+
.layers-tab-container .layers-node.layers-flash {
857+
animation-duration: 1ms;
858+
background-color: fade(@layers-accent, 32%);
859+
}
860+
}

0 commit comments

Comments
 (0)