Team:Fudan/pro
From 2014.igem.org
(Difference between revisions)
Line 63: | Line 63: | ||
</div> | </div> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<div class="container_wapper"> | <div class="container_wapper"> | ||
<div id="templatemo_banner_menu"> | <div id="templatemo_banner_menu"> | ||
Line 117: | Line 107: | ||
- | + | <div class="col-xs-8 visible-xs"> | |
+ | <a href="#" id="mobile_menu"><span class="glyphicon glyphicon-th-list"></span></a> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div><ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> | ||
+ | </ul> | ||
+ | </div> | ||
Line 231: | Line 227: | ||
<script src="https://2014.igem.org/Team:Fudan/js/templatemo_script.js?action=raw"></script> | <script src="https://2014.igem.org/Team:Fudan/js/templatemo_script.js?action=raw"></script> | ||
- | + | <script>$(document).scroll(function(){ | |
+ | document_top = $(document).scrollTop(); | ||
+ | event_wapper_top = $("#templatemo_contact").position().top - $('#templatemo_banner_menu').outerHeight(); | ||
+ | if(document_top<event_wapper_top){ | ||
+ | degree = (360/event_wapper_top)*(document_top); | ||
+ | event_animate_num = event_wapper_top - document_top; | ||
+ | event_animate_alpha = (1/document_top)*(event_wapper_top); | ||
+ | $("#templatemo_about .imgwap").css({ | ||
+ | '-webkit-transform': 'rotate(' + degree + 'deg)', | ||
+ | '-moz-transform': 'rotate(' + degree + 'deg)', | ||
+ | '-ms-transform': 'rotate(' + degree + 'deg)', | ||
+ | '-o-transform': 'rotate(' + degree + 'deg)', | ||
+ | 'transform': 'rotate(' + degree + 'deg)', | ||
+ | }); | ||
+ | $("#templatemo_about .about_icon").css({ | ||
+ | 'opacity':event_animate_alpha | ||
+ | }); | ||
+ | }else{ | ||
+ | $("#templatemo_about .imgwap").css({ | ||
+ | '-webkit-transform': 'rotate(' + 360 + 'deg)', | ||
+ | '-moz-transform': 'rotate(' + 360 + 'deg)', | ||
+ | '-ms-transform': 'rotate(' + 360 + 'deg)', | ||
+ | '-o-transform': 'rotate(' + 360 + 'deg)', | ||
+ | 'transform': 'rotate(' + 360 + 'deg)', | ||
+ | }); | ||
+ | $("#templatemo_about .about_icon").css({ | ||
+ | 'opacity':1 | ||
+ | });$('ul li a').unbind(); | ||
+ | } | ||
+ | });</script> | ||
</body> | </body> | ||
<script>$('.igem_bar a').unbind();</script> | <script>$('.igem_bar a').unbind();</script> | ||
</html> | </html> |
Revision as of 18:52, 16 October 2014