
MattArtDept
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by MattArtDept
-
-
just though I would add this. If you need to target something in the stored html then you can use the jquery selector isolated to the current object. e.g. $(".el", domObj)
see this pen for an example:
See the Pen CBzjk?editors=001 by KingDaddy (@KingDaddy) on CodePen
-
Duh... Why couldn't I see that!!!
Thanks for your help.
-
Firstly I have to say how amazing gsap is, I've used it in as for many years and I've finally taken the plunge to the js version and I have to say I'm loving it!!
So.... I'm trying to write an app that dynamically loads in html views and adds them to the dom, I then create timelines to manipulate the views and store these in the app for reuse later on.
The problem I'm having is that when I remove the html from the dom (say for instance I was loading another view) and then add it back again the timelines are no longer attached to the view.
I've created a codepen to illustrate this:
1. If you play the timeline it works
2. Hit "remove and add back to dom"
3. The timeline plays but no longer is attached to the box
I realise I can kill the timeline and add it back again but I will have many views/timelines in my app and I would prefer not to have to reset them when loading each view.
Any ideas what I'm doing wrong here and how I can reattach the timeline?
See the Pen swxga by KingDaddy (@KingDaddy) on CodePen
Input wanted: should we change the force3D default?
in GSAP
Posted
I'm all for auto but if by some chance you don't, would we be able to manually set a default? i.e. CSSPlugin.defaultForce3D = "auto"