Bedtime

I have a 2month old baby, every time he falls asleep & I go to lay him down in either his crib or bassinet he wakes up(legs fly up).. any tricks/tips to stop this from happening lol. I don’t want him to sleep in the bed with me.