what can be the issue when my car stops when braking & coming to a complete stop on 1998 Nissan Altima

This just started lastnight and has happened every since then but it never happened previously.

Asked by for the 1998 Nissan Altima
car supposed to stop when braking. lol. supposed to be gradual though. if stopping sudden, than brakes are locking up. bring to a brake shop and have them inspected. safety issue.