I am making a seamless CSS pattern on the web. I know this is totally nonsense and non-practical at all. But it is just for the sake of having fun.
http://codepen.io/vennsoh/pen/iFKyo
I have done creating my first tile. Now I am thinking of a way to repeat it to fill up the whole background.
Can I complete this feat by just using HTML and CSS? Or must I use javascript to complete this?
-
Here are my steps if using javascript, correct me or suggest better ways:
- Calculate current browser width and height.
- A single tile is (150x150), I will just need to create as many div(s) to cover the whole screen.
-
I might want to make things move around, each polygon changes color, etc. It won't be static. I am not looking for a background-image solution.
Thanks, Venn.