Movies where feelings for each other switch

Are there any movies where in the beginning the girl is mad crazy in love with the guy/best friend but the guy doesn’t like her back or just sees her as a friend but near the end they switch places, and she starts to fall out of love with him and move on, but he finally starts to develop feelings for her. Whether they end up together or not, it’s just according to the movie. I just liked that concept.