Transitioning from bedsharing to crib

Au

My baby is 9.5 weeks old, and out of desperation, we have been bedsharing with her from the beginning as we couldn’t get her to sleep in the bassinet or crib. Has anyone successfully made the transition from bedsharing to crib this early? If so, would you share in detail how you did it?

We keep trying to put her down after the bedtime routine “drowsy but asleep” or even fully asleep, but her eyes pop open as soon as she hits the crib mattress. Any guidance is appreciated!