Difference between revisions of "Team:Nankai/Team"
Line 14: | Line 14: | ||
<script src="https://2015.igem.org/Template:Nankai/hover_packJS?action=raw&ctype=text/javascript"></script> | <script src="https://2015.igem.org/Template:Nankai/hover_packJS?action=raw&ctype=text/javascript"></script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(function () { | ||
+ | var filterList = { | ||
+ | |||
+ | |||
+ | hoverEffect: function () { | ||
+ | // Simple parallax effect | ||
+ | $('#portfoliolist .portfolio').hover( | ||
+ | function () { | ||
+ | $(this).find('.label').stop().animate({bottom: 0}, 200, 'easeOutQuad'); | ||
+ | $(this).find('img').stop().animate({top: -30}, 500, 'easeOutQuad'); | ||
+ | }, | ||
+ | function () { | ||
+ | $(this).find('.label').stop().animate({bottom: -40}, 200, 'easeInQuad'); | ||
+ | $(this).find('img').stop().animate({top: 0}, 300, 'easeOutQuad'); | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | } | ||
+ | |||
+ | }; | ||
+ | // Run the show! | ||
+ | filterList.init(); | ||
+ | }); | ||
+ | </script> | ||
<style> | <style> | ||
Revision as of 08:13, 18 September 2015