Browse Source

don't activate menu link on click any more... it will be activated when section is reached

responsive
Georg Hopp 9 years ago
parent
commit
da80cfe25a
  1. 2
      app/assets/javascripts/parallax.coffee
  2. 4
      app/assets/stylesheets/welcome.scss

2
app/assets/javascripts/parallax.coffee

@ -27,8 +27,6 @@ App.init = ->
targetOffset = $target.offset().top
$(this).click ->
$("#nav li a").removeClass("active")
$(this).addClass('active')
$('html, body').animate({scrollTop: targetOffset}, 1000)
return false

4
app/assets/stylesheets/welcome.scss

@ -107,8 +107,10 @@ p {
font-size: 16px;
text-decoration: none;
font-weight: bold;
outline: 0;
}
#nav li a:hover {
#nav li a:hover,
#nav li a:active {
color: rgba(255,255,255,0.7);
}
#nav li a.active {

Loading…
Cancel
Save