(Prototype team page) |
m (test animate) |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
+ | <head> | ||
+ | <style> | ||
+ | .teamSec{ | ||
+ | position:relative; | ||
+ | height:500px; | ||
+ | } | ||
− | + | .teamPic{ | |
+ | position:absolute; | ||
+ | margin-right:500px; | ||
+ | border: 5px solid black; | ||
+ | border-radius:50%; | ||
+ | height:250px; | ||
+ | width:auto; | ||
+ | float:left; | ||
+ | } | ||
− | + | .teamDesc{ | |
− | + | display:none; | |
− | + | float:left; | |
+ | } | ||
− | + | </style> | |
− | < | + | <script> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | function showDesc(elem){ | |
− | + | //Get all of the children elements | |
− | + | var pic = elem.getElementsByClass("teamPic"); | |
− | + | var desc = elem.getElementById("teamDesc"); | |
− | + | var member = elem.getElementById("member"); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | desc.style.display = "inline"; | ||
+ | desc.style.height = "0px"; | ||
+ | member.style.display = "none"; | ||
+ | var position = 0; | ||
+ | |||
+ | //Set the interval | ||
+ | var int = setInterval(move, 5); | ||
+ | |||
+ | function move(){ | ||
+ | if(position == 250){ | ||
+ | clearInterval(int); | ||
+ | }else{ | ||
+ | pic.style.margin = 500 - (2 * position) + "px"; | ||
+ | pic.style.height = 250 + position + "px"; | ||
+ | desc.style.height = 2 * position + "px"; | ||
+ | position++; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | } | ||
+ | |||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
+ | <section class=full> | ||
+ | |||
+ | <div> | ||
+ | |||
+ | <h1 style="text-align:center;">MEET THE TEAM</h1> | ||
+ | |||
+ | <section class=teamSec onmouseover="showDesc(this)"> | ||
+ | <img class=teamPic src="pictures/Home/crystal_headShot.png"> | ||
+ | <h2 id=member>Crystal Xu</h2> | ||
+ | <p class=teamDesc>Crystal will be a junior at Lincoln East high school. She enjoys traveling by long plane rides, eating desserts, and running cross country and track. One day she hopes to become a great surgeon.</p> | ||
+ | </section> | ||
</div> | </div> | ||
+ | |||
+ | </section> | ||
+ | |||
</html> | </html> |
Revision as of 19:30, 12 July 2017
UNL 2017
Helping reduce methane emissions from livestock
MEET THE TEAM
Crystal Xu
Crystal will be a junior at Lincoln East high school. She enjoys traveling by long plane rides, eating desserts, and running cross country and track. One day she hopes to become a great surgeon.