I have a background image that is currently repeating vertically and centered on the page. Some ASCII art is depicted here to describe the image on the left and right sides.
---------- | | | | |LR| | | | | ----------
I would like the image to repeat in the entire browser window when it is flipped vertically every time:
---------------------------------------- | || || || | | || || || | |LR||RL||LR||RL| | || || || | | || || || | ----------------------------------------
Now I could create an image like the following to repeat it with CSS:
-------------------- | || | | || | |LR||RL| | || | | || | --------------------
However, this image is already much larger than I want, so making it 2 times more is out of the question (especially since I plan to have a version of the retina too!). I thought doing this in Javascript could be a good compromise.
Does anyone know of a JS library that can handle this already, or point me to a resource that would give me a decent start?
Thanks,
Tim
source share