refactor(动画): 修改服务项动画选择器及配置
将`.service-item`选择器改为`.service-container`,并调整动画配置,使用`origin: 'bottom'`和`useDelay: 'once'`以优化动画效果
This commit is contained in:
parent
4725513ff2
commit
25ab79e93d
@ -1125,13 +1125,12 @@ const animate = () => {
|
||||
mobile: true,
|
||||
})
|
||||
//service-item
|
||||
sr.reveal('.service-item', {
|
||||
duration: 800,
|
||||
sr.reveal('.service-container', {
|
||||
origin: 'bottom',
|
||||
delay: 300,
|
||||
opacity: 0,
|
||||
scale: 0.5,
|
||||
reset: true,
|
||||
mobile: true,
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user