How to make this on my homepage? I’m really looking for any function codes to do this.
Its actually theme based. it wont be simple. Its most likely a combination of php, html and css. In short, you need a designer for this or to purchase the right theme.
Newspaper theme can get you this kinda stuff.