Skip to content

Commit

Permalink
added Animation in navbar for Different Pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
rupeshv2121 committed Jan 11, 2025
1 parent fc72a19 commit fe1b9e1
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 2 deletions.
16 changes: 16 additions & 0 deletions contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,20 @@ body.addEventListener("mousemove", function (e) {
y: e.y,
duration: 0.5
})
})

gsap.from(".logo", {
opacity: 0,
y: -30,
delay: 0.5,
duration: 1
})

const tl = gsap.timeline();
tl.from(".nav-links li", {
delay: 1,
opacity: 0,
stagger: 0.25,
duration: 1,
y: -30
})
16 changes: 16 additions & 0 deletions index2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,20 @@ body.addEventListener("mousemove", function (e) {
y: e.y,
duration: 0.5
})
})

gsap.from(".logo", {
opacity: 0,
y: -30,
delay: 0.5,
duration: 1
})

const tl = gsap.timeline();
tl.from(".nav-links li", {
delay: 1,
opacity: 0,
stagger: 0.25,
duration: 1,
y: -30
})
3 changes: 1 addition & 2 deletions pricing.css
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,7 @@ body {
}
.image-button1 {
position: fixed;
top: 5px;
left: 10px; /* Aligns the button to the left side */
left: -75px; /* Aligns the button to the left side */
background-color: transparent; /* Transparent background */
border: none;
border-radius: 50%;
Expand Down
16 changes: 16 additions & 0 deletions pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,20 @@ body.addEventListener("mousemove", function (e) {
y: e.y,
duration: 0.5
})
})

gsap.from(".logo", {
opacity: 0,
y: -30,
delay: 0.5,
duration: 1
})

const tl = gsap.timeline();
tl.from(".nav-links li", {
delay: 1,
opacity: 0,
stagger: 0.25,
duration: 1,
y: -30
})
16 changes: 16 additions & 0 deletions resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,20 @@ body.addEventListener("mousemove", function (e) {
y: e.y,
duration: 0.5
})
})

gsap.from(".logo", {
opacity: 0,
y: -30,
delay: 0.5,
duration: 1
})

const tl = gsap.timeline();
tl.from(".nav-links li", {
delay: 1,
opacity: 0,
stagger: 0.25,
duration: 1,
y: -30
})

0 comments on commit fe1b9e1

Please sign in to comment.