replaced the hardcoded values in the new css classes with the variables for property and duration.