How to create battery percentage animation