Hate-to-love (trope)
From Book Trigger Warnings
The "hate-to-love trope" is when two (or more) characters start off the story hating each other but eventually end up falling in love. This is sometimes called "enemies-to-lovers" or "rivals-to-lovers" though there are some nuances between the names.
For a list of books on BTW with this trope, click here.