
window.addEventListener('DOMContentLoaded', (event) => {
const animatedText = document.getElementsByClassName('member-main-w3layouts h4')[0]; // 获取要动画的文本元素
const textAnimation = window.getComputedStyle(animatedText).animation; // 获取动画属性值
const animationDuration = textAnimation.duration.toFixed(2); // 获取动画持续时间(以秒为单位)
const animationDelay = textAnimation.delay.toFixed(2); // 获取动画延迟时间(以秒为单位)
const animationName = textAnimation.name; // 获取动画名称
const animationTimingFunction = textAnimation.timingFunction; // 获取动画的缓动函数
const animationFillMode = textAnimation.fillMode; // 获取动画的填充模式(forwards、backwards、both)
const animationDirection = textAnimation.direction; // 获取动画的播放方向(normal、reverse、alternate、alternate-reverse)
const animationLoopCount = textAnimation.iterationCount; // 获取动画的循环次数(Infinity表示无限循环)
const animationDurationSeconds = parseFloat(animationDuration) * 1000; // 将动画持续时间转换为毫秒单位
const animationDelaySeconds = parseFloat(animationDelay) * 1000; // 将动画延迟时间转换为毫秒单位
})