Coder Social home page Coder Social logo

Add a call back function about unveil HOT 7 CLOSED

ktoumaniac avatar ktoumaniac commented on July 18, 2024
Add a call back function

from unveil.

Comments (7)

luis-almeida avatar luis-almeida commented on July 18, 2024

Hey, Thanks for your feedback!
The main goal of the plugin is to be really small, focusing primarily on lazy loading and leaving fancy features out.
Having said that, I'm considering adding this feature but only if enough people up-vote it in this thread.

from unveil.

milindalvares avatar milindalvares commented on July 18, 2024

👍

How much weight would a callback function add to the plugin? Also, is there any easy way an end user can add such a function to the plugin, like maybe a module? I know I'm asking too much.

from unveil.

luis-almeida avatar luis-almeida commented on July 18, 2024

It's not about the weight it adds since that's neglectable . It's about being as minimal in features as possible.
I'm just asking for feedback from people first to understand if that is something that they'll use because I won't.

Currently the only way is to fork the code and add the callback.

from unveil.

hendrasan avatar hendrasan commented on July 18, 2024

It's probably useful for example for images with caption, to display caption only if the image has been loaded.

from unveil.

neverything avatar neverything commented on July 18, 2024

This is indeed a fantastic plugin! The callback would be much appreciated as for images that are set in CSS to height: auto; (RWD) it would be very helpful to have a callback to say, for example when the image is loaded set the height to auto and not before.

from unveil.

milindalvares avatar milindalvares commented on July 18, 2024

Yup, that's the reason I'd like a callback. To call masonry every time an image loads.
On 13-Aug-2013, at 2:09 PM, Silvan Hagen [email protected] wrote:

This is indeed a fantastic plugin! The callback would be much appreciated as for images that are set in CSS to height: auto; (RWD) it would be very helpful to have a callback to say, for example when the image is loaded set the height to auto and not before.


Reply to this email directly or view it on GitHub.

from unveil.

luis-almeida avatar luis-almeida commented on July 18, 2024

Thanks for your feedback everyone!
I just added the callback option and also documentation on how to use it to add an entrance animation.

from unveil.

Related Issues (20)

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.