jordan97 Posted March 4, 2022 Share Posted March 4, 2022 Hi everyone, I am new to GSAP and learning this language from a few days and I want to know if it is necessary to learn jQuery before learning this language. Kindly help me, GSAP community. Link to comment Share on other sites More sharing options...
PointC Posted March 4, 2022 Share Posted March 4, 2022 Hi @jordan97 Welcome to the forum. There's no need to learn jQuery to use GSAP. It's not dependent on any other libraries. If you want to learn jQuery for other reasons, go for it, but it's not necessary to make cool animations with GSAP. Have fun and welcome aboard. 3 Link to comment Share on other sites More sharing options...
jordan97 Posted March 4, 2022 Author Share Posted March 4, 2022 Thanks for your help, I need another doubt to cleared Like in this code the name of the classes are (box orange, box grey and box green) then how can it be written in the js as .box and .green only? Link to comment Share on other sites More sharing options...
PointC Posted March 4, 2022 Share Posted March 4, 2022 Sorry, I don't really follow the question. In the above code, each div has a common class of .box but each have their own color class too. So you could target all the divs by making .box the target of the tween. If you only want to target an individual div, you'd target the color class of that particular element. If that doesn't answer your question, could you clarify a bit? Thanks. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now