set opacity: 0 instead of css scale
This commit is contained in:
parent
7f1f4d9f93
commit
309706dffe
1 changed files with 4 additions and 3 deletions
|
|
@ -93,11 +93,12 @@
|
|||
gsap.set('.work, .works, .headline', {
|
||||
transformOrigin: '0 0',
|
||||
})
|
||||
gsap.fromTo('.work',{
|
||||
opacity: 1,
|
||||
gsap.set('.work',{
|
||||
opacity: 0,
|
||||
yPercent: 50,
|
||||
scaleY: 0,
|
||||
},{
|
||||
})
|
||||
gsap.to('.work',{
|
||||
opacity:1,
|
||||
yPercent: 0,
|
||||
scaleY: 1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue