Time-lapse can take a lot of space depending on the frame interval and image size. iPhones automatically adjust the settings to keep your time-lapse videos short and light.
For cameras, it will depend on the photo size and amount of photos. You can use a time-lapse calculator (such as the one shown in this article) to figure out how much storage space you need.