Comments (3)
Well...this is a known issue/limitation of this library mentioned in README as #22. Basically, images will not be visible after zoom-in if its parents have CSS style overflow: hidden
. In your case, the element .carousel-inner
is causing the issue.
A potential solution is to remove overflow: hidden
before opening the image and add it back once closed:
const carouselInner = document.querySelector('.carousel-inner')
new Zooming({
onBeforeOpen: function () {
carouselInner.style.overflow = 'visible'
},
onClose: function () {
carouselInner.style.overflow = 'hidden'
}
});
I haven't tested it though, just something off the top of my head.
from zooming.
Thanks for the quick reply! I have done a static override to overflow: visible
on the .carousel-inner
element, however it doesn't make a difference, I also updated the codepen.
...
<div class="carousel-inner" style="overflow: visible;">
...
</div>
...
from zooming.
Hey @winterdedavid I don't think I have bandwidth to investigate this further, so I will close this issue now. As I said it might be a limitation of this library. As a side note, it may not be a good UX choice to combine image zooming and carousel together, seems a bit weird to interact in my opinion.
from zooming.
Related Issues (20)
- Seeking Maintainers HOT 2
- there is differents between 2 situations HOT 1
- it did not work for me HOT 2
- Can I have more control over when zoom closes?
- Acess the template wrapper HOT 1
- zooming videos HOT 4
- Images are not zoomed in the center of the viewport when document is displayed within an iframe HOT 3
- Strange behavior when zoom animation is activated HOT 3
- further zoom in HOT 5
- Add option for cursor customization HOT 1
- Scale to full size of high res image. HOT 1
- Add config option to specify parent container for overlay
- click once to resize HOT 4
- Thanks for an excellent tool! HOT 1
- Closing on scroll doesn't occur as expected
- Implement event delegation!
- No zooming when img as link HOT 2
- Add an id to zoomed image or zoom div?
- Grab Strength/Distance
- Bug encountered when using zooming.js in Vue.js.
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 zooming.