style: optimize animation durations and details

This commit is contained in:
radishzzz 2025-05-18 22:55:53 +01:00
parent eb82a7d2f2
commit 1db68e8716
11 changed files with 13 additions and 31 deletions

View file

@ -3,7 +3,7 @@ import { gsap } from 'gsap'
function setupPostPageAnimation() {
const allElements = Array.from(document.querySelectorAll('#gsap-post-page-content > *, #gsap-post-page-tags, #waline'))
const tocListChildren = Array.from(document.querySelectorAll('#toc-list > *')).slice(0, 20)
const tocListChildren = Array.from(document.querySelectorAll('#toc-list > *'))
const dateElement = document.getElementById('gsap-post-page-date')
const backButton = document.getElementById('back-button')
const tocIcon = document.getElementById('toc-icon')