jquery-backstretch / jquery-backstretch

Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.
http://www.jquery-backstretch.com
MIT License
3.91k stars 911 forks source link

diffrent possitions #280

Open mikila85 opened 10 years ago

mikila85 commented 10 years ago

i'm using this great plugin to let my users choose theyr own background as theyr profile's background, but sometimes people dont want it 1 image full screen but want a small image tiled. is there a way to do that with the plugin (maybe somehow use div instead of img?

quantizor commented 10 years ago

Kind of defeats the purpose of what Backstretch does. In a case like that, I'd have a conditional check for a desired tile effect, and then just set the chosen image as a background with repeat enabled on the <html> or <body> element. Otherwise, queue up Backstretch as normal.