mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
chore: update gsap animation config
This commit is contained in:
parent
4d247cfb93
commit
910fd9f39a
1 changed files with 4 additions and 4 deletions
|
@ -90,8 +90,8 @@ function setupPostPageAnimation() {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Post Content + Tags + Comments
|
// Post Content + Tags + Comments
|
||||||
// First 5 elements
|
// First 7 elements
|
||||||
gsap.from(allElements.slice(0, 5), {
|
gsap.from(allElements.slice(0, 7), {
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: '3rem',
|
y: '3rem',
|
||||||
duration: 0.5,
|
duration: 0.5,
|
||||||
|
@ -99,8 +99,8 @@ function setupPostPageAnimation() {
|
||||||
ease: 'power2.out',
|
ease: 'power2.out',
|
||||||
stagger: 0.05,
|
stagger: 0.05,
|
||||||
})
|
})
|
||||||
// Rest elements as the 6 element
|
// Rest elements as the 8 element
|
||||||
// if (allElements.length > 5) {
|
// if (allElements.length > 7) {
|
||||||
// gsap.from(allElements.slice(7), {
|
// gsap.from(allElements.slice(7), {
|
||||||
// opacity: 0,
|
// opacity: 0,
|
||||||
// y: '3rem',
|
// y: '3rem',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue