The display of both devices is 1920x1080 so that's fine. Actually all bootanimations created to match with this resolution will work.You can find something in S4 forum..i think it can work on s5...
Sent from my SM-G900F using XDA Free mobile app