added transitions to css

added styling for form and transition