Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

TedTech

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Newbie

About TedTech

  • Rank
    Newbie
  1. TedTech

    Right and left

    Hey @mikel, Thanks you. Now, everything works !
  2. TedTech

    Right and left

    Hey @mikel, Thanks for you message. I created a CodePen. Ted
  3. TedTech

    Right and left

    Hi, 😀 I have a little problem with right and left. When I click on the button 'inscription' everything is ok. But, when I click on 'logIn' it doesn't work. Indeed, Left still has '0' and right has also '0'. Then, nothing happens. I've tried with t1.fromTo(.img, 0.35, {left : 0}, {right:0}), but it doesn't work. Can you help me to understand why 'left 'still has 0 when I click on 'logIn' ? Thanks :). inscription.addEventListener('click', () =>{ t1.to(img, 0.35, {borderBottomLeftRadius:'200px 400px',borderBottomRightRadius:'0px', borderTopRightRadius:'0px',borderTopLeftRadius:'200px 400px', left: 0, strictUnits:true}); t1.to(form, 0.35, {right:'8%', zIndex:1, strictUnits:true}, '-=0.35'); t1.to(form,0.35, {opacity: 1}, '-=0.20'); }); logIn.addEventListener('click', () => { t1.to(img, 0.35, {borderBottomLeftRadius:'0px',borderBottomRightRadius:'200px 400px', borderTopRightRadius:'200px 400px',borderTopLeftRadius:'0px', right: 0, strictUnits:true}); t1.to(form,0.35, {opacity: 0}, '-=0.20'); });
×