Remco
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Remco
-
-
Thanks Cassie, that's nice solution which im using too for now.
Maybe in a future version of GSAP .
- 1
-
Hi all!
I love to set some defaults at the start of my project, like the default duration and ease.
Is it possible to set defaults specific for FROM or TO animations?
Something like this:
gsap.defaults({ 'from': { ease: 'power3.in', duration: 0.6 }, 'to': { ease: 'power1.out', duration: 0.2 } });
Any idea?
- 1
-
Hi Dipscom,
That does work. Thanks! Can you also explain why my version doesnt work? So if you put the className toggle on a clickEvent (and outside the timeline)? It looks like its overwriting the other. Although im using -= and += so it shouldnt happen..
Thanks again
-
Hi there,
I'm building a custom collapse navigation. See codepen:
The 'nav' element needs to toggle two classNames. If its collapsed (by click), and if its animating(by timeline). Some how, the 'collapsed' class will not be removed if you close the navigation. If i remove the +=animating classnames in the timeline, it will work..
Of course, i can rebuild the HTML and toggle the className on another element to fix this issue, but i dont want that
Does anyone has the same issue and is there a simple fix?
GSAP.defaults different for FROM and TO
in GSAP
Posted
Never thought of that for my solution. Thanks Carl!