产品详情
煜风凰·紫凤凰 - 产品介绍
紫凤凰涅槃,诱惑身体重塑
煜风凰·紫凤凰,开启您的诱惑蜕变之旅
{
entries.forEach((entry, index) => {
if (entry.isIntersecting) {
// 添加延迟效果,让动画更有层次感
setTimeout(() => {
entry.target.classList.add('revealed');
}, index * 100);
}
});
}, observerOptions);
// 观察所有需要滚动动画的元素
document.querySelectorAll('.container .scroll-reveal').forEach(el => {
observer.observe(el);
});
// 特色功能卡片的额外交互效果
const featureItems = document.querySelectorAll('.container .feature-item');
featureItems.forEach((item, index) => {
item.addEventListener('mouseenter', function() {
// 为其他卡片添加轻微的缩放效果
featureItems.forEach((otherItem, otherIndex) => {
if (otherIndex !== index) {
otherItem.style.transform = 'scale(0.98)';
otherItem.style.opacity = '0.8';
}
});
});
item.addEventListener('mouseleave', function() {
// 恢复所有卡片的原始状态
featureItems.forEach(otherItem => {
otherItem.style.transform = '';
otherItem.style.opacity = '';
});
});
});
// 信息卡片的交互效果
const infoSections = document.querySelectorAll('.container .info-section');
infoSections.forEach(section => {
section.addEventListener('mouseenter', function() {
this.style.borderLeftWidth = '6px';
this.style.borderLeftColor = '#E0C2A2';
});
section.addEventListener('mouseleave', function() {
this.style.borderLeftWidth = '4px';
this.style.borderLeftColor = '#4FC2D1';
});
});
// 平滑滚动效果
document.querySelectorAll('.container a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
});