Moment From Your Name.
Twilight ends just as Mitsuha was about to write her name on Taki's hand and the pen falls. Both no longer have any memory of the other and Taki no longer has the ribbon that bound them.
High schoolers Mitsuha and Taki are complete strangers living separate lives. But one night, they suddenly switch places. Mitsuha wakes up in Taki’s body, and he in hers. This bizarre occurrence continues to happen randomly, and the two must adjust their lives around each other.
Tags: time travel, supernatural, afterlife, romance, school, body-swap, star crossed lovers, anime