premieroctet / gatsby-remark-images-zoom Goto Github PK
View Code? Open in Web Editor NEW๐ Bring medium-zoom to gatsby-remark-images
Home Page: https://www.gatsbyjs.org/packages/gatsby-remark-images-zoom/
๐ Bring medium-zoom to gatsby-remark-images
Home Page: https://www.gatsbyjs.org/packages/gatsby-remark-images-zoom/
The How to Use in the README.md
is missing a }
in the second to last line
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: 'gatsby-remark-images',
options: {
linkImagesToOriginal: false,
},
},
`gatsby-remark-images-zoom`,
],
}
} # <-----------------------------------------
];
Hello,
if I access my case studies (markdown) via the page generator by slug, the plugin won't work initially, I need to manually refresh the markdown page for it to work properly, any ideas?
Thanks in advance.
My issue is very similar to #2;
When I compare to the demo site:
<img>
tag on my site isn't nested inside the responsive background image <span>
<img>
on my siteThe main difference seems to be that nuking node_modules did not help.
This is my configuration: https://github.com/barbalex/vermehrung/blob/c76d323180b13db0297c0b05bfb83bd9d569c9f3/gatsby-config.js#L90
Here is the md file with the image: https://github.com/barbalex/vermehrung/blob/c76d323180b13db0297c0b05bfb83bd9d569c9f3/src/technischeDoku/struktur.md
In my case this happens in dev and in production.
This looks nice, but can it work with gatsby-image
processed images in a regular Gatsby page, and not just images in a markdown file? Essentially, a universal image zoom function of all images on a site, whether they be in a markdown file or in a page.
thanks!
Not an issue - just wanted to take a moment and say thank you! ๐ ๐ ๐ ๐
I followed the instructions and installed the plugin, added it to the gatsby-config.js file like so:
//...
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1000,
linkImagesToOriginal: false
}
},
'gatsby-remark-images-zoom',
//...
however clicking on it does nothing.
It would help a lot if the their was a demo site with code available, however comparing against the generated HTML of the demo linked in the readme, I noticed a couple of (likely key) differences compared to my site's code:
On the left is my site and on the right is the demo site. Note that
<img>
tag on my site isn't nested inside the responsive background image <span>
.medium-zoom-image
class is missing from the <img>
on my siteNot sure why the tag isn't being nested properly, or if this is some sort of conflicting dependency issue. Any idea on what it might be, or what I could try to resolve it?
This looks like a great start to a plugin I'm in need of. Awesome. However, I can't get the images to unzoom.
I'm using https://github.com/pretzelhands/gatsby-starter-semantic-ui as the starter with this configuration.
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-less',
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 300,
linkImagesToOriginal: false,
},
},
`gatsby-remark-images-zoom`,
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: 'images',
path: `${__dirname}/src/data/images/`,
},
},
I get the unzoom cursor, but it doesn't do anything.
Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.