karnov.club/js/animate.js

30 lines
774 B
JavaScript
Raw Normal View History

2015-12-22 05:59:56 +00:00
$(window).ready(function() {
2015-12-24 07:36:59 +00:00
/*$('#page').fullpage({
2015-12-23 04:19:01 +00:00
anchors:["landing","resume","getInTouch"]
2015-12-24 07:36:59 +00:00
});*/
2015-12-22 05:59:56 +00:00
2015-12-22 23:44:30 +00:00
var period = "<span style='color:#727272;font-weight:normal'>.</span>";
2015-12-22 05:59:56 +00:00
var typedStrings = ["code"+period, "learn new things"+period, "tinker"+period, "communicate"+period, "teach"+period, "solve problems"+period, "get things done"+period];
$("#typedWords").typed({
strings: typedStrings,
typeSpeed:0,
backSpeed:0,
backDelay: 1500,
showCursor: true,
cursorChar: "_",
loop: true,
contentType: 'html'
});
2015-12-24 07:36:59 +00:00
});
$(".menulink").click(function() {
var $panel = $(this).attr("id");
console.log($panel);
$('html,body').animate({
scrollTop: $($panel).offset().top},
'slow');
});