When rendering images, it will take the position of the preceding images and create overlaps (will adjust automatically when resizing the browser).
The new image inherits the preceding image's translateX such as translateX(757px) translateY(434px), when resizing the browser it gets updated to translateX(0px) translateY(513px).
Basically if this.props.returnImage(1) is not empty return the StackGrid component (I had to do this otherwise everything would overlap from the first try).
When rendering images, it will take the position of the preceding images and create overlaps (will adjust automatically when resizing the browser).
The new image inherits the preceding image's translateX such as translateX(757px) translateY(434px), when resizing the browser it gets updated to translateX(0px) translateY(513px).
Here's what I mean: https://imgur.com/a/kPpHRzh
Here's my component:
Basically if this.props.returnImage(1) is not empty return the StackGrid component (I had to do this otherwise everything would overlap from the first try).
Please let me know if you know a turnaround!