jQuery slideDown() not actually animating

jQuery slideDown() not actually animating

I'm trying to use slideDown() when displaying dynamically created elements.  I find that the delay works, but there is no animation, the div just pops up.  I've set the width, I've read you need to have a fixed width in order for jQuery to run the animation smoothly, but that still has not helped.  I had no issues when using slideUp() when removing the element, only on creation with slideDown().  Any help would be great.

  1. $(document).ready(function(){
  2.     
  3.     //Stop the form from submitting
  4.     $('#submit-form').submit(function(e){
  5.         e.preventDefault();
  6.     });
  7.     
  8.     
  9.     
  10.     //Variables to store totals
  11.     var itemCounter = 0;
  12.     var priceCounter = 0;
  13.     
  14.     //Handler to get value of ITEM and PRICE
  15.     $('#submit-btn').click(function(){
  16.          
  17.     //Create List title
  18.     if(itemCounter = 1){
  19.         $('#listTitle').html(
  20.             '<h3 id="listTitle">Your List!</h3>')}
  21.         
  22.         //Get value for submitted item and append to list
  23.         var addItem = $('#item').val();
  24.         itemCounter ++;
  25.         
  26.         //Functionality to keep track of TOTAL PRICE and be able to remove an 
  27.         //item so the price reflects the removal
  28.         var addPrice = Number.parseInt($('#cost').val());
  29.         priceCounter += addPrice;
  30.         
  31.         
  32.      
  33.         
  34.         
  35.         //Append ITEM and PRICE to document
  36.         var addToList = 
  37.             '<li class="addedItem">' +addItem+ '<button class="delete" data-price="' 
  38.             +addPrice+ '">Delete</button></li>';


  39.         //---------HEREIN LIES THE PROBLEM-------------!!!!!!!!!!!!!!!!!!
  40.         $('#items').slideDown('2000', function(){
  41.             $('#items').append(addToList);
  42.         })
  43.         
  44.         //Clear the form after submit
  45.         $('#item').val('');
  46.         $('#cost').val('');
  47.         
  48.         //Clear ESTIMATED COST TOTAL and append new total
  49.         $('#estimatedCost').html('');
  50.         $('#estimatedCost').append('$' +priceCounter); 
  51.             
  52.        
  53.     });
  54.     
  55.     //Functionality for Delete Button
  56.     $(document).on('click', '.delete', function(){     //Because the delete button has been created                                                                         //dynamically you must specify  
  57.         var price = +$(this).data('price');             //to listen to the DOCUMENT for the click on                                                                           //'DELETE'
  58.         var fade = $(this).closest('li');
  59.         fade.slideUp('slow', function(){   
  60.             fade.remove();
  61.         });
  62.         
  63.         
  64.         //Edit item total and estimated cost after removing an item
  65.         itemCounter --;
  66.         $('#itemsTotal').html('');
  67.         $('#itemsTotal').append(itemCounter);
  68.         
  69.         priceCounter -= price;
  70.         $('#estimatedCost').html('');
  71.         $('#estimatedCost').append(priceCounter);
  72.         
  73.         
  74.         
  75.         
  76.         
  77.                 
  78.       });
  79.     
  80.     //Function to create sum all off prices
  81.     function sumPrice(){}
  82.     
  83. });