I’m making a front end react app. I want to have an element slide across the screen (left->right) and then spin back across the (right->left). The idea is that the element goes smoothly across the screen and then after reaching the edge of the screen gets “flicked back” to the starting point.
So the first animation would be smooth linear left to right. The second animation would be a rotating + right to left transition.
Is this possible?
I can get the element to go back and forth across the screen with infinite + alterations but I can’t get the rotation to only occur on the back path.