pixabay / javascript-fleximages Goto Github PK
View Code? Open in Web Editor NEWA lightweight vanilla JavaScript plugin for creating fluid galleries as seen on Flickr and Google Images.
A lightweight vanilla JavaScript plugin for creating fluid galleries as seen on Flickr and Google Images.
For small grids the last row is very often uncomplete and you still want to show it. Having the feature to have the final row filled out (and overriding the max-height settings) would be great.
max width?
Hello there,
When using multiple grids with same selector, only the last one will be updated on resize. If you have n
grids, the last one will be updated n
times.
As far as I understand problem is here :
for (var i=0;i<grids.length;i++) {
var grid = grids[i],
[...]
makeGrid(grid, items, o); // <- this call is ok
var tempf = function() { makeGrid(grid, items, o); }; // <- this call will not be ok as it is deferred.
[...]
}
"grid" in this function is not a copy of for loop's "grid", it IS the for loop's "grid". So when the event will be fired later on, grid will always have the current "grid" value of the for loop, which already has ended looping long ago => I will always be the last grid.
I may give this a try, but I do not see an easy fix this evening.
Hello there,
Thank you for this nice piece of code.
Since a lot of developers use NPM rather than Bower, it would be great to publish it on NPM. Would it be feasible for you ?
Best regards
I want to use lazyload for fleximages, how can you help me?
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.