Support for Background Images
See original GitHub issueBug description
The zoom effect doesn’t work with background images.
How to reproduce
Try using a background image and initializing it in the JS
- Run
mediumZoom(selector, options)
- Click on the image
- See error
Expected behavior
Zoom will work with background images
Environment
- Browser: Firefox 63
medium-zoom
version: 1.0.2
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
"background-image" | Can I use... Support tables for HTML5 ...
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >background-image - Campaign Monitor
Which web, mobile and desktop email clients support the background-image CSS property? Read Campaign Monitor's breakdown of CSS support to find out.
Read more >Background Image Support in Email Clients - EnovaPoint
Adding background images is arguably makes emails both stunning and more functional. Learn about background image support in email clients.
Read more >Email Background Images: How to Wow Subscribers (+ Code)
How to Wow Every Subscriber with an Email Background Image Easily (+ the Code to Do It!) ... Email client support for background...
Read more >background-image - CSS: Cascading Style Sheets | MDN
The background-image CSS property sets one or more background images on an ... separated by commas, as multiple backgrounds are supported.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My use case is the customization of a page that I have generated using https://grapesjs.com. GrapesJS shows cards that contain images set as
background-image
.I think he wanted to say that he would like medium-zoom to support zooming images that are defined using the
background-image
CSS property of any HTML element (instead of onlyimg
elements).I would also be interested in this feature.