Difference between revisions of "Team:Kent/Team"

Line 11: Line 11:
 
</html>
 
</html>
  
 +
(function(){
 +
  var parallax = document.querySelectorAll(".parallax"),
 +
      speed = 0.5;
 +
  window.onscroll = function(){
 +
    [].slice.call(parallax).forEach(function(el,i){
 +
      var windowYOffset = window.pageYOffset,
 +
          elBackgrounPos = "50% " + (windowYOffset * speed) + "px";
 +
      el.style.backgroundPosition = elBackgrounPos;
 +
    });
 +
  };
 +
 +
})();
 +
 +
    $('a[href="#content-container"]').click(function(){
 +
        var the_id = $(this).attr("href");
 +
        $('html, body').animate({
 +
                scrollTop:$(the_id).offset().top-30
 +
        }, 'slow');
 +
        return false;
 
{{KentFooter}}
 
{{KentFooter}}

Revision as of 23:14, 27 June 2015

iGEM Kent 2015


Meet the team

Left to right: Moyra, Raneem, Jonathan, Rob, Richard, James, Katarina, Anna, Suparna, Natalie, Alice

(function(){

 var parallax = document.querySelectorAll(".parallax"),
     speed = 0.5;
 window.onscroll = function(){
   [].slice.call(parallax).forEach(function(el,i){
     var windowYOffset = window.pageYOffset,
         elBackgrounPos = "50% " + (windowYOffset * speed) + "px";
     el.style.backgroundPosition = elBackgrounPos;
   });
 };

})();

   $('a[href="#content-container"]').click(function(){
       var the_id = $(this).attr("href");
       $('html, body').animate({
               scrollTop:$(the_id).offset().top-30
       }, 'slow');
       return false;