title: Custom header content animate while scrolling in swift
body: <p>I have created custom header but I don't know how to animate while scrolling.</p>
  
  <p>Please check below image and let me know how to animate while scrolling.
  This animated header in <a href="https://itunes.apple.com/us/app/fotmob-live-soccer-scores/id488575683?mt=8" rel="nofollow noreferrer">Fotmob</a> app.</p>
  
  <p><a href="https://i.stack.imgur.com/HyO0O.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HyO0O.gif" alt="enter image description here"></a></p>