Team:SYSU-China/js/animate.js

From 2014.igem.org

Revision as of 10:04, 5 October 2014 by MoriWiFi (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$(document).ready(function() { $('#fullpage').fullpage({ anchors: ['firstPage', 'secondPage', '3rdPage'], sectionsColor: ['#6daba1', '#da664a', '#f8ce44'], navigation: true, navigationPosition: 'right', navigationTooltips: ['First page', 'Second page', 'Third and last page'] });

function setStyle() { $(".line img :odd").each(function(i) { $(this).css({'width' : '20%', 'z-index' : '0'}); }); $(".line img :even").each(function(i) { if (i == 0) return; $(this).css({'margin-left' : '-20px', 'margin-right' : '-20px', 'margin-bottom': '20px', 'z-index' : '1000'});

}); } //setStyle(); });