Longshore drift (LSD) is caused by a prevailing wind which is at an angle to the beach. This causes waves to rise up the beach at an angle, and fall down the beach in a straight line, due to gravity. Each wave will transport some sediment as it moves. This means that sediment will move in a zig-zag pattern along the beach; causing a build-up of deposition at one end. This causes the beach get narrower at one end and wider at the other. In some instances, LSD can cause a spit to form if the beach reaches a headland. This causes deposition to go out to sea.
(I will also draw and use annotated diagrams to illustrate my explanations)