-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
31 lines (28 loc) · 861 Bytes
/
script.js
File metadata and controls
31 lines (28 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$(Document).ready(function(){
$(window).scroll(function(){
if(this.scrollY > 20){
$('.navbar').addClass("sticky");
}else{
$('.navbar').removeClass("sticky");
}
});
//toogle menu bar /nav bar script
$('.menu-btn').click(function(){
$('.navbar .menu').toggleClass("active");
$('.menu-btn i').toggleClass("active");
});
});
// typing animate script////
var typed = new Typed(".typing ",{
strings: ["Programmer" , "Web Designer" , "Logo Designer" , "Tutor" , "Coder"],
typeSpeed: 100,
backSpeed: 60,
loop: true
});
// typing animate script
var typed = new Typed(".typing2 ",{
strings: ["Programmer" , "Web Designer" , "Logo Designer" , "Tutor"],
typeSpeed: 100,
backSpeed: 60,
loop: true
});