File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1006,6 +1006,7 @@ body:not(.subpage--output):not(.subpage--settings) .image-options-container {
1006
1006
}
1007
1007
1008
1008
.image-output__item {
1009
+ position : relative;
1009
1010
display : flex;
1010
1011
justify-content : flex-end;
1011
1012
align-items : center;
@@ -1018,6 +1019,18 @@ body:not(.subpage--output):not(.subpage--settings) .image-options-container {
1018
1019
overflow : hidden;
1019
1020
}
1020
1021
1022
+ .image-output__item-tint {
1023
+ position : absolute;
1024
+ top : 0 ;
1025
+ left : 0 ;
1026
+ z-index : -1 ;
1027
+ width : 100% ;
1028
+ height : 100% ;
1029
+ pointer-events : none;
1030
+ background-color : var (--color-primary );
1031
+ opacity : 0 ;
1032
+ }
1033
+
1021
1034
.image-output__item-thumbnail {
1022
1035
width : 70px ;
1023
1036
height : 70px ;
@@ -1606,6 +1619,18 @@ body:not(.compressing--is-active) .drop-zone.drop-zone--is-dragging .drop-zone__
1606
1619
}
1607
1620
}
1608
1621
1622
+ @keyframes fade-tint-in-out {
1623
+ 0% {
1624
+ opacity : 0 ;
1625
+ }
1626
+ 50% {
1627
+ opacity : 0.25 ;
1628
+ }
1629
+ 100% {
1630
+ opacity : 0 ;
1631
+ }
1632
+ }
1633
+
1609
1634
1610
1635
/****************************************************
1611
1636
* Media queries
@@ -2283,6 +2308,10 @@ body:not(.compressing--is-active) .drop-zone.drop-zone--is-dragging .drop-zone__
2283
2308
animation : fade-out-shrink var (--duration-600 ) ease-in-out forwards;
2284
2309
}
2285
2310
2311
+ .fade-tint-in-out {
2312
+ animation : fade-tint-in-out var (--duration-1400 ) ease-in-out forwards;
2313
+ }
2314
+
2286
2315
.mask-b {
2287
2316
mask-repeat : no-repeat;
2288
2317
mask-image : linear-gradient (# fff, # 0000 );
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ function buildOutputItemHTML({
21
21
const itemId = Math . random ( ) . toString ( 36 ) . substring ( 2 , 6 ) . toUpperCase ( ) ;
22
22
return `
23
23
<div id="output_item__${ itemId } " class="image-output__item file-format--${ outputFileExtension } fade-in-up" data-elevation="3">
24
+ <div class="image-output__item-tint fade-tint-in-out"></div>
24
25
<img src="${ thumbnailDataURL } " class="image-output__item-thumbnail" loading="lazy">
25
26
<div class="image-output__item-text">
26
27
<div class="image-output__item-filename">
You can’t perform that action at this time.
0 commit comments