I have a button that is clicked to reveal a table row:
$(document).ready(function() {
$("label.deathzone-toggle").click(function() {
$("tr.deathzone").toggleClass("show");
});
});
tr.deathzone td {
display: none;
}
tr.deathzone.show td {
display: table-cell;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<label class="custom-control-label deathzone-toggle" for="customSwitches">Show Deathzone Inducements</label>
That all works fine but I'm trying to fade in/out the rows, I've tried fadeIn("slow");but it's not working. I also tried adding transition:opacity 1.5s ease;
to the css and that does not work either? Bit stuck!!