#How would you recreate this background in Tailwind?

1 messages · Page 1 of 1 (latest)

odd verge
#

I'd like to recreate the background for my portfolio but in tailwind, anyone got an idea of how you randomly place the shapes in background as shown here.

Thank you and i hope to hear from you soon.

#

How would you recreate this background in Tailwind?

copper canopy
#

Create a div that take up 100% of the width and height, then create (or get) svg shapes and place them manually at random position in your container.

If you want to do it absolutely random at each reload, you can write a javascript function to do that when the page loads but I think it would be a bit overkill.

PS. You can see how this specific person has done by inspecting their code using the dev menu.

#

By using google lens I found the website where this is from and it's done the way I said; they are svg shapes positionned at specific positions on in a container.

odd verge
copper canopy
#

Yea

odd verge
#

alright ill give it a shot!

sleek barn
#

Or could use tailwinds platform/screen size conditional styling

copper canopy
sleek barn