mirror of https://github.com/metafizzy/isotope
Filter & sort magical layouts
http://isotope.metafizzy.co
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
2.8 KiB
133 lines
2.8 KiB
11 years ago
|
<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
|
||
|
<title>stamps</title>
|
||
|
|
||
|
|
||
10 years ago
|
<link rel="stylesheet" href="sandbox.css" />
|
||
11 years ago
|
|
||
|
<style>
|
||
|
|
||
|
#alpha .stamp1 {
|
||
|
width: 30%;
|
||
|
height: 100px;
|
||
|
left: 30%;
|
||
|
top: 20px;
|
||
|
}
|
||
|
|
||
|
#alpha .stamp2 {
|
||
|
width: 200px;
|
||
|
height: 50px;
|
||
|
left: 20px;
|
||
|
top: 50px;
|
||
|
}
|
||
|
|
||
|
#beta {
|
||
|
border-style: solid;
|
||
|
border-width: 40px 30px 20px 10px;
|
||
|
padding: 10px 20px 30px 40px;
|
||
|
}
|
||
|
|
||
|
#beta .stamp1 {
|
||
|
width: 30%;
|
||
|
height: 100px;
|
||
|
left: 10%;
|
||
|
top: 20px;
|
||
|
}
|
||
|
|
||
|
#beta .stamp2 {
|
||
|
width: 200px;
|
||
|
height: 50px;
|
||
|
right: 20px;
|
||
|
top: 50px;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<h1>stamps</h1>
|
||
|
|
||
|
<div id="alpha" class="container">
|
||
|
<div class="stamp stamp1"></div>
|
||
|
<div class="stamp stamp2"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h4"></div>
|
||
|
<div class="item h2"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h3"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h4"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h4"></div>
|
||
|
<div class="item"></div>
|
||
|
</div>
|
||
|
|
||
|
<div id="beta" class="container">
|
||
|
<div class="stamp stamp2"></div>
|
||
|
<div class="stamp stamp1"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h4"></div>
|
||
|
<div class="item h2"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h3"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h4"></div>
|
||
|
<div class="item"></div>
|
||
|
<div class="item h4"></div>
|
||
|
<div class="item"></div>
|
||
|
</div>
|
||
|
|
||
11 years ago
|
<script src="../bower_components/eventEmitter/EventEmitter.js"></script>
|
||
|
<script src="../bower_components/eventie/eventie.js"></script>
|
||
|
<script src="../bower_components/doc-ready/doc-ready.js"></script>
|
||
|
<script src="../bower_components/get-style-property/get-style-property.js"></script>
|
||
|
<script src="../bower_components/get-size/get-size.js"></script>
|
||
|
<script src="../bower_components/matches-selector/matches-selector.js"></script>
|
||
|
<script src="../bower_components/outlayer/item.js"></script>
|
||
|
<script src="../bower_components/outlayer/outlayer.js"></script>
|
||
|
<script src="../bower_components/masonry/masonry.js"></script>
|
||
|
|
||
|
<script src="../js/item.js"></script>
|
||
|
<script src="../js/layout-mode.js"></script>
|
||
|
<script src="../js/isotope.js"></script>
|
||
|
<script src="../js/layout-modes/masonry.js"></script>
|
||
11 years ago
|
|
||
|
<script>
|
||
|
docReady( function() {
|
||
|
( function() {
|
||
|
var container = document.querySelector('#alpha');
|
||
11 years ago
|
var iso = new Isotope( container, {
|
||
11 years ago
|
itemSelector: '.item',
|
||
11 years ago
|
stamp: '.stamp',
|
||
|
masonry: {
|
||
|
columnWidth: 60,
|
||
|
gutter: 10
|
||
|
}
|
||
11 years ago
|
});
|
||
|
|
||
|
})();
|
||
11 years ago
|
|
||
11 years ago
|
( function() {
|
||
|
var container = document.querySelector('#beta');
|
||
11 years ago
|
var iso = new Isotope( container, {
|
||
|
stamp: '.stamp',
|
||
|
masonry: {
|
||
|
columnWidth: 60,
|
||
|
gutter: 10
|
||
|
}
|
||
11 years ago
|
});
|
||
|
|
||
|
})();
|
||
11 years ago
|
|
||
11 years ago
|
});
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|