Transform Interactions Z index

Here is the code I am trying to use with help from @Brando on my previous post Help with transform interactions

<script>
  $("#up").click(function(){
   $("#card").css("z-index", -10);
 });

  $("#down").click(function(){
   $("#card").css("z-index",10);
 });
</script>