Comments (2)
why not just do it via css?
add a class on the wrapper before the block you use to call the slider which sets it's child elements to
background-size: cover
And if you only want to do it to mobile elements then simple use write it in a media query.
from jquery-bgswitcher.
I fixed this with CSS. The issue for me was that it's hard to target the div it creates above so I used the adjacent sibling selector:
https://stackoverflow.com/questions/3660046/what-is-syntax-for-selector-in-css-for-next-element
nav.navbar + div { background-size: cover !important; background-attachment: initial !important; }
Hope this helps!
from jquery-bgswitcher.
Related Issues (20)
- responsive HOT 5
- background-colorの指定 HOT 2
- image with complete path "file:///mnt/sdcard/nicepic.jpg" will not load HOT 6
- Responsive HOT 2
- Console Issue from jquery.bgswitcher.js:232 HOT 3
- background attachment & position HOT 6
- Transition in Chrome for iOS HOT 2
- First image duration?
- Background Repeat HOT 1
- Tests fail
- Server Request
- Switcher is removing css properties i need HOT 1
- found a couple of solutions while using jquery-bgswitcher for a site
- Add class (or ID) to DIV HOT 1
- Installation by Bower. HOT 1
- The bgswitcher doesn't let me assign rounded borders to the div HOT 1
- Add a zoom in/out effect: Not an issue but more like an enhancement.
- Using jquery-bgwitcher with jquery version 1.3.2
- get index on image which is used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-bgswitcher.