It is illegal if you use the downloaded materials for commercial purposes. Unless you have permission from the owner of the video / GIF. For more details see the Terms of Service page.