How to use timeline and it’s behavior