.ball
View Compiled
body
  text-align: center
  padding-top: 200px
  background-color: #333

.ball
  display: inline-block
  width: 100px
  height: 100px
  background: #4285f4
  border-radius: 50%
  box-shadow: 10px 5px 5px -8px rgba(#000, .6)
  cursor: pointer
  animation: .3s bounce cubic-bezier(0, .2, .15, 1) infinite alternate

@keyframes bounce
  to
    transform: translate(0, -160px) // add 60px jump Y offset
    box-shadow: 50px 75px 40px -20px rgba(black, .25)

View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.