Grow your CSS skills. Land your dream job.

Responsive Contact Form

  • # August 6, 2012 at 6:37 am

    I’m looking to reproduce something like the responsive contact form on this site with the trigger to open and close the form being the ribbon below, and was hoping someone could give me some tips on how it is done with jquery. I’m not really sure where to begin in terms of positioning the open/close button, and getting the form to work.

    Would I be right in saying this is an accordion with form elements inside?

    # August 6, 2012 at 10:34 am

    That can be done using jQuery’s slideToggle function. Demo

    HTML

    Contact Me (click here)









    Script

    $('#contact').hide();

    $('h2').click(function(){
    $('#contact').slideToggle('slow');
    });​
    # August 7, 2012 at 6:05 pm

    Great. Many thanks, Mottie.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".