CodePen

HTML

            
              <div id="go">

		<a href="#go">Animate</a> <a href="#reset">Reset</a>

		<p>Using a value outside of the 0-1 range to create a "bounce" effect</p>

		<div class="one">
			<h2> cubic-bezier(.2,1,.9,-0.5)</h2>
			<div class="box">
			</div>
		</div>

	</div>
            
          
!

CSS

            
              .box {
  background: blue;
  width: 100px;
  height: 100px;
  -webkit-transition-duration: 2s;
  transition-duration: 2s;
}

.one .box {
  -webkit-transition-timing-function: cubic-bezier(.2,1,.9,-0.5);
  transition-timing-function: cubic-bezier(.2,1,.9,-0.5);
}

#go:target .box {
  -webkit-transform: translate(300px);
  transform: translate(300px);
}

body {
  font: .7em Arial;
}

h2 {
  margin: 20px 0 5px;
}

a {
  padding: 5px 10px;
  background: blue;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  margin-top: 10px;
  display: inline-block;
}

a:hover {
  opacity: 0.6;
}

p {
  font-size: 1.2em;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................