Comments (5)
yep, i would like to do the same ;~)
i've got an animation similar to the initial qicksand one running (http://razorjack.net/quicksand/), but would like to not start with all containers visible, but with a selection. how could i bring that about?
thanx for the plugin, btw, absolutely stunning!
cheers from germany, -funtoosh
(PS my current dummy is at weltrettung.org/audiocabbb )
from quicksand.
I'd love to get an answer to this as well. Having the ability to at least limit the initial number of items returned would help me greatly!
from quicksand.
it was actually quite easy, once i had thought about it: just make two lists, one is initially visible, the other hidden. apply quicksand to both lists (you will want to point quicksand to an UL-class rather than an id). a new list will be built, containing everything you want to see.
(i applied an ".all"-class to all LIs to make them all visible on click.)
hope that helps?
-funtoosh
from quicksand.
Perhaps a slightly more elaborate explanation for the novice coder.
from quicksand.
Consider this example: http://razorjack.net/quicksand/demos/one-set-clone.html
// DOMContentLoaded
$(function() {
// bind radiobuttons in the form
var $filterType = $('#filter input[name="type"]');
var $filterSort = $('#filter input[name="sort"]');
// get the first collection
var $applications = $('#applications');
// clone applications to get a second collection
var $data = $applications.clone();
// INSERT THIS NEW CODEZ!
$utils = $("#applications").find('li[data-type=util]'); // query line
$('#applications').html($utils);
And that's it! Pure jQuery, it doesn't involve any Quicksand call. Just replace the query line with any other call that will pick your items that you want to display when the page loads.
from quicksand.
Related Issues (20)
- Broken responsive gallery issue. HOT 6
- Any way for quick sand to understand percentage for width ?!
- [enhancement] Add missing bower.json. HOT 2
- Problem while using quicksand with pagination HOT 1
- Issue after upgrading from 1.2.2 to 1.4
- Some items float out of div when selecting the "All' | Bug HOT 1
- Bootbox.js stops working after I filter portfolio HOT 1
- Add package.json HOT 3
- Stop setting width on the container HOT 1
- Quicksand sorting feature, two different id and Image is coming two time when I select all images HOT 1
- Changing filters to a select drop down HOT 1
- License Query HOT 1
- Found and fixed a bug when using some responsive widths HOT 2
- Uncaught Error: Syntax error, unrecognized expression: [object Object] HOT 2
- Fix please events crush by this solution HOT 1
- Add license files HOT 1
- work with Jquery 3.1 HOT 1
- Migration guide
- problems occur when the animation ends?
- Glitches when parent is transform scaled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quicksand.