Should I use Greensock entirely instead of JQuery? -
i aware of performance gain when use greensock. want use it. however, confused because use
1) jquery if , else statements
2) jquery addclass, toggleclass, removeclass
3) jquery on click
4) jquery on scroll
can greensock or use both in combination? searched didnt find answers online.
i appreciate advice.
greensock animation platform. it's awesome @ bascially 2 things: tweening, , sequencing tweens.
literally in dom, or attribute can tweened greensock.
but once start getting functionality, you're outside of greensock's featureset. question is, what's preferred flavor of javascript? use greensock extensively plain vanilla js maximize speed. there's no reason not use jquery if helps code faster.
keep in mind:
1) greensock , jquery play nicely together. there's no reason not use tweenlite animation , if you're seeing performance gains, , jquery logic.
2) sounds of functionality you're looking pretty basic. might okay without jquery , using plain old .js.
there no right , wrong directions here. both platforms play each other. , doesn't sound of them essential goals. pick , choose either one.
- gs / plain js = okay
- gs / jquery = okay
- jquery alone = okay
Comments
Post a Comment