UNPKG
ecommerce
Version:
latest (0.1.1)
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
Easily create Ecommerce sites powered by Hanzo.
github.com/hanzo-io/ecommerce
hanzo-io/ecommerce
ecommerce
/
templates
/
standard-landing-page
/
js
/
layerify.js
10 lines
(9 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// Number all the top level sections for material-like layering effect
$(
function
(
){
var
$sections = $(
'body > section'
);
var
len = $sections.
length
; $sections.
each
(
function
(
i
){
var
$section = $(
this
); $section.
css
(
'z-index'
, len - i); }); });