Coder Social home page Coder Social logo

goaround / gallery-block-lightbox Goto Github PK

View Code? Open in Web Editor NEW
34.0 2.0 9.0 373 KB

Adds a simple & lightweight Lightbox to the standard WordPress Image Gallery Block. No lock in and no dependencies.

Home Page: https://wordpress.org/plugins/gallery-block-lightbox/

PHP 100.00%
wordpress-plugin block-editor gutenberg-blocks

gallery-block-lightbox's People

Contributors

goaround avatar teebee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gallery-block-lightbox's Issues

Suggestion: don't wait for `load` event

The gallery I used this on has many large images that can (especially depending on the connection) delay the load event well beyond time to interactive. That makes it likely that clicking an image will navigate to it directly instead of the desired (scripted) behavior.

I noticed that the baguetteBox readme says:

Note: if you import baguetteBox using the <script> tag, remember to run it after the document has loaded:

That's probably just the simplified general recommendation. I modified this plugin to execute baguetteBox.run immediately and it works well.

Thanks for this straightforward plugin!

Mind sharing the source/build code?

Hi Johannes,

I'm trying to create something similar for my custom plugin and I would love to use your source code as a basis for this block. Would you mind sharing your source code by committing this part as well to github?

change svg arrows in lightbox

Hi Johannes,
Ich würde gerne die svgs der Pfeile und des Schließen-Icons anpassen, gibt es da eine Möglichkeit oder wie sollte ich am besten vorgehen?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.