Comments (5)
Hi
Please use the following css in your stylesheet, that should override the box sizing which is applied in skel.min.js:
.poptrox-popup,.poptrox-popup:before,.poptrox-popup:after {
-moz-box-sizing: initial;
-webkit-box-sizing: initial;
box-sizing: initial;
}
from jquery.poptrox.
Thanks, but unfortunately it did not work, it works without skel or layers, but once I add one of those scripts it does not work.
The overlay appears but no images, I've tested with Baseline, no luck.
from jquery.poptrox.
First, here's the fix: add this setting to your Poptrox config:
overlayClass: 'poptrox-overlay skel-layers-fixed'
As for why it fixes it: Layers uses CSS transforms by default, which on some browsers (mostly Webkit-based) breaks things that use position: fixed
(which Poptrox uses). The two ways to fix it are to either:
a. Turn off CSS transforms using this in your Layers config:
config: {
transform: false
}
or...
b. Give all of your position: fixed
elements the skel-layers-fixed
class. This tells Layers to move said elements to one of its non-transformed wrappers, which apparently fixes the weirdness.
from jquery.poptrox.
BOOM ;) great stuff, thanks so much.
from jquery.poptrox.
Awesome :)
from jquery.poptrox.
Related Issues (20)
- Touch navigation (mobiles) HOT 6
- Feature Request: support for history pushState and popState HOT 1
- popup windows sizing HOT 1
- Poptrox doesn't work with jQuery 3.1.0 HOT 2
- Ajax Result (append <li>...</li>): Uncaught TypeError: Cannot read property 'object' of undefined HOT 2
- Dynamically added captions doesn't show in the pop up modal
- Add a counter
- increase image dimensions if image is smaller than browser window HOT 1
- Gallery fails to load using jQuery 3.0.0+ HOT 2
- popupIsFixed: true is ignored
- vimeo url
- Fixed pop up, cant zoom or scroll in image HOT 1
- Fullscreen button for lightbox
- Lightgallery closes automatically when I click a nav arrow
- Background scrolling
- Moving navs outside of lightbox
- Soundcloud playlist
- Gallery on top of gallery?
- Adding an element
- How to add hyperlinks in captions?
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.poptrox.