The appropriate situation for the transfer of energy from kinetic energy into gravitational potential energy is:
a ball being launched from the ground to its apex.
In this scenario, as the ball rises, it slows down (losing kinetic energy) and gains height (gaining gravitational potential energy).