Updated landing page. New background, changed mono space font to Hack, added different animation of text
This commit is contained in:
25
js/init.js
25
js/init.js
@@ -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
|
||||
|
Reference in New Issue
Block a user