Is it possible to add custom elytra textures based off the elytra's name? | 1.21.5

I want to make a vanilla texture pack in 1.21.5 that changes the texture of an elytra when it is equipped depending on what it is named, is this possible?

Continue to help post