<h2>psst... don't forget to resize me.</h2>

<div id="signUpForm">
  <div role="form" class="wpcf7" id="wpcf7-f276-o1" dir="ltr">
    <div class="screen-reader-response"></div>
    <form action="/#wpcf7-f276-o1" method="post" class="wpcf7-form" novalidate="novalidate">
      <div style="display: none;">
        <input type="hidden" name="_wpcf7" value="276">
        <input type="hidden" name="_wpcf7_version" value="4.5.1">
        <input type="hidden" name="_wpcf7_locale" value="">
        <input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f276-o1">
        <input type="hidden" name="_wpnonce" value="3da6ca0018"></div>

      <!---------------------------------------------------------------->
      <!----------ADD THIS IN CONTACT FORM 7 ABOVE INPUTS/LABELS-------->
      <!---------------------------------------------------------------->
      <div class="contact-button">Contact Us <span class="form-arrow">&#9650;</span></div>
      <!----------------------------------------------------------------->
      <!----------------------------------------------------------------->
      <!----------------------------------------------------------------->

      <p><span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false" placeholder="Name"></span><br>
        <span class="wpcf7-form-control-wrap your-email"><input type="email" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" aria-invalid="false" placeholder="Email"></span><br>
        <span class="wpcf7-form-control-wrap your-phone"><input type="text" name="your-phone" value="" size="40" class="wpcf7-form-control wpcf7-text" aria-invalid="false" placeholder="Phone (optional)"></span><br>
        <span class="wpcf7-form-control-wrap your-message"><textarea name="your-message" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea" aria-invalid="false" placeholder="Message"></textarea></span></p>
      <div class="wpcf7-form-control-wrap">
        <div style="width: 304px; height: 78px;background-image:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1636676/recaptcha.png');background-size:cover;background-position:center;">
        </div>
      </div>
      <p><input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit"><img class="ajax-loader" src="https://familyautoandtransmission.com/wp-content/plugins/contact-form-7/images/ajax-loader.gif" alt="Sending ..." style="visibility: hidden;"></p>
      <div class="wpcf7-response-output wpcf7-display-none"></div>
    </form>
  </div>
</div>
@import url('https://fonts.googleapis.com/css?family=Indie+Flower');

* {
    font-family: 'Indie Flower', cursive;
}

#signUpForm * {
  box-sizing: border-box;
}
#signUpForm {
  display: inline-block;
  background: #ffa0a2;
  padding: 30px 30px 0;
  width: 300px;
  font-size: 18px;
  position: fixed;
  bottom: -500px;
  right: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-radius: 12px 12px 0 0;
}
#signUpForm .contact-button {
  background: #ff6760;
  border: 6px solid white;
  padding: 10px 40px;
  text-align: center;
  border-radius: 12px;
  color: #f0e2e0;
  position: relative;
  margin: -54px auto 30px;
  display: table;
  font-weight: bold;
  transition: .1s ease-in-out;
}
#signUpForm .contact-button:hover {
  background: #f0e2e0;
  color: #ff6760;
  cursor: pointer;
}
#signUpForm form {
  width: 100%;
}
#signUpForm input,
#signUpForm textarea {
  width: 100%;
  margin: 4px 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: center;
  background: #f0e2e0;
  font-size: .85em;
}
.form-arrow {
  font-size: 0.7em;
  position: relative;
  display: inline-block;
  transform-origin: center;
  vertical-align: middle;
  top: -2px;
  left: 10px;
}
#signUpForm input:focus,
#signUpForm textarea:focus {
  border: 1px solid #789400;
  outline: none;
}
#signUpForm textarea {
  height: 100px;
}
#signUpForm .wpcf7-submit {
  background: #c3ca13;
  font-weight: 600;
  color: #3e3e3e;
  box-shadow: 0px 6px 30px rgba(158, 13, 13, 0.31);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  #signUpForm {
    padding: 10px 20px 0;
    width: 300px;
    position: fixed;
    bottom: 0;
    display: table;
    right: -277px;
    top: 30%;
    border-radius: 12px 12px 0;
    box-shadow: none;
    transform: scale(0.8);
    transform-origin: right;
  }
  #signUpForm .contact-button {
    position: absolute;
    left: -15px;
    top: 80px;
    border-radius: 12px;
    bottom: 0;
    border: 5px solid white;
    margin: auto 0;
    transform-origin: left;
    transform: rotateZ(-90deg);
  }
}
$(function() {
  var hiddenFormBottom = $("#signUpForm").css("bottom");
  var hiddenFormRight = $("#signUpForm").css("right");

  $(".contact-button").click(function() {
    var screenWidth = $(window).width();
    var formPosDesktop = $("#signUpForm").css("bottom");
    var formPosMobile = $("#signUpForm").css("right");

    if (screenWidth >= 768 && formPosDesktop !== "0px") {
      TweenMax.to("#signUpForm", 0.7, {
        bottom: 0,
        ease: Expo.easeOut
      });
      TweenMax.to(".form-arrow", 1, {
        rotationZ: 180,
        transformOrigin: "center",
        ease: Expo.easeOut
      });
    } else if (screenWidth >= 768 && formPosDesktop == "0px") {
      TweenMax.to("#signUpForm", 0.3, {
        bottom: hiddenFormBottom,
        ease: Bounce.easeOut
      });
      TweenMax.to(".form-arrow", 0.7, {
        rotationZ: 0,
        transformOrigin: "center",
        ease: Expo.easeOut
      });
    }

    if (screenWidth < 768 && formPosMobile !== "0px") {
      TweenMax.to("#signUpForm", 0.7, {
        right: 0,
        ease: Expo.easeOut
      });
      TweenMax.to(".form-arrow", 1, {
        rotationZ: 180,
        transformOrigin: "center",
        ease: Expo.easeOut
      });
    } else if (screenWidth < 768 && formPosMobile == "0px") {
      TweenMax.to("#signUpForm", 0.3, {
        right: -277,
        ease: Bounce.easeOut
      });
      TweenMax.to(".form-arrow", 0.7, {
        rotationZ: 0,
        transformOrigin: "center",
        ease: Expo.easeOut
      });
    }
  });
});

$(window).resize(function() {
  $("#signUpForm, .form-arrow").attr("style", "");
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.2/TweenMax.min.js