Jump to content
Search Community

How Can I clearProps: on Mobile View

creativedevy test
Moderator Tag

Recommended Posts

Hi GSAP thanks for this great Library you all work on and provide ,💫

I was wondering how I could clear the inline style set by GSAP on my elements, when Im on mobile view,
I made a little Demo to demonstrate my problem ,but I can't figuere it out , so I though I might post it here
so maby someone could help me out.

 

how to remove inline style on mobile view example

thanks in advance🤓🥺🖐️

 

See the Pen poLeOax?editors=1111 by creativedreadz (@creativedreadz) on CodePen

Link to comment
Share on other sites

I can't give you details right now, but let me just tell you that you are gonna LOVE the next release of GSAP. ;)🤫

 

It looks like you don't just want to clearProps - you've got infinitely repeating tweens that you need to kill(). 

gsap.killTweensOf(".title, .text, .image, .title2, .text2");
gsap.set(".title, .text, .image, .title2, .text2", {clearProps:"all"});

There are many ways you could do it. Keep track of the tweens/timelines and .kill() them or just use the killTweensOf() method. But again, the next GSAP release will make you very happy. 

  • Like 2
Link to comment
Share on other sites

hehe You make me curious 😎🤠, I will be waiting for it , and in the mean time I get the chance to figure few things out on these great platform 🖐️

Again thanks for taking time to look at my problem ,  I solved it I had to kill my timeline and the clear the props Im so thankfull for your fast reply.

Lets get ready for the Next GSAP release 👊

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...