Updated landing page. New background, changed mono space font to Hack, added different animation of text

This commit is contained in:
2018-07-15 11:47:47 +02:00
committed by Dennis Potter
parent f4e74bfc14
commit 2edaf86d48
6 changed files with 119 additions and 194 deletions

View File

@@ -6,15 +6,36 @@
jQuery(document).ready(function($) {
/*----------------------------------------------------*/
/* Typed Header
------------------------------------------------------ */
var typed = new Typed('#header-hi-text', {
strings: ["Hi, I'm Dennis "],
typeSpeed: 45,
startDelay: 200,
onComplete: function() {
$('#header-eng-div p').addClass('load');
setTimeout(function() {
$('.social').addClass('load');
}, 1000);
setTimeout(function() {
$('.icon-down-circle').addClass('load');
}, 1000);
}
});
/*----------------------------------------------------*/
/* FitText Settings
------------------------------------------------------ */
setTimeout(function() {
$('h1.responsive-headline').fitText(1, { minFontSize: '8px', maxFontSize: '45px' });
$('h1.responsive-headline').fitText(1, { minFontSize: '30px', maxFontSize: '75px' });
$('h3.responsive-headline').fitText(1, { minFontSize: '8px', maxFontSize: '20px' });
}, 100);
/*----------------------------------------------------*/
/* Smooth Scrolling