How to stay on an animated surface?

I have an animation where a platform moves up and down. However, when I try to get onto it I fall through. how do you make it where you "stick" to a moving surface? Also when i am on a platform moving back and forth i stay in on place even though the platform is moving. HELP!

There are 2 similar questions which might help you with your problem:

see the 2d game tutorial. you should use character controllers and colliders to do what you want.

All your ref links are dead