Favicon is working, Animations, some adjustments for iPhone 5s
This commit is contained in:
parent
ada129b993
commit
494a5cceb3
5 changed files with 33 additions and 7 deletions
13
js/smooth-scroll.js
Normal file
13
js/smooth-scroll.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
$(document).ready(function(){
|
||||
$("a").on('click', function(event) {
|
||||
if (this.hash !== "") {
|
||||
event.preventDefault();
|
||||
var hash = this.hash;
|
||||
$('html, body').animate({
|
||||
scrollTop: $(hash).offset().top
|
||||
}, 800, function(){
|
||||
window.location.hash = hash;
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue