I see that there is a solution for M1. Would this work for M2?
1 Answer
Same code will work. Just add this code in app/design/frontend/packagename/themename/Magento_Catalog/template/product/list.phtml
<?php if (!$product->isSaleable()): {
echo '<style>.category-products li.item .product-image img{ opacity:0.6;
filter: alpha(opacity=60); } </style>';
} endif;?>