Tak JS no..Tu je ten návod, podľa ktorého som sa riadil: https://www.phpjabbers.com/free-sliding-contact-form-script/