title: Heartbeat effect
body: <p>I want to create a simple heart beat animation i.e. object scale starts from x1 goes up to x5 comes down to x3 goes back up to x5 and then back to x1 waits for T secs and then loop the animation.</p>
  
  <p>Currently I am using a lazy implementation which lerps to x5 and checks if it has reached the target size and lerps to x3 and so on (yes it has a lot of if statements).</p>
  
  <p>What I am looking for is an elegant way to make this animation (may be a mathematical equation) which does not uses so many if checks.</p>