title: How to get a button press to ease in and ease out in CSS3?
body: <p>I'm trying to get my nav-bar header logo to ease in and out on click/release.</p>
  
  <p>Currently, when you click the logo, the image eases correctly but when you release it snaps back and doesn't ease back into the normal size.</p>
  
  <p>What am I doing wrong with the CSS3?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>  .navbar-brand {
      height: 40px;
      width: 182px;
      text-indent: 100%;
      overflow: hidden;
      white-space: nowrap;
      background: url('https://www.sketchappsources.com/resources/source-image/twitterlogo_1x.png') no-repeat left center;
      background-size: auto 40px;
      transform: scale(1, 1);
      transition-timing-function: ease-in;
      transition: 0.2s;
    }
    
    
      .navbar-brand:active {
        transition-timing-function: ease-out;
        transition: .5s;
        transform: scale(.95, .95);
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;div class="bd-example" data-example-id=""&gt;
  &lt;nav class="navbar navbar-toggleable-md navbar-light bg-faded"&gt;
    &lt;button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"&gt;
      &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;a class="navbar-brand" href="#"&gt;Navbar&lt;/a&gt;
  
    &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
      &lt;ul class="navbar-nav mr-auto"&gt;
        &lt;li class="nav-item active"&gt;
          &lt;a class="nav-link" href="#"&gt;Home &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#"&gt;Link&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link disabled" href="#"&gt;Disabled&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
      &lt;form class="form-inline my-2 my-lg-0"&gt;
        &lt;input class="form-control mr-sm-2" type="text" placeholder="Search"&gt;
        &lt;button class="btn btn-outline-success my-2 my-sm-0" type="submit"&gt;Search&lt;/button&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>