en en en en en en en en en en en en en en en en en en fa en en fr hbs_lat en en en es en en en de en en fr en en ca en en en en en en en ms en en en en tr fr en en sv en en en en en en en en en en en en en en en en it en en en en en en sv en en en en en en sv en en en en en en en en en en en en en en en en en en en en sv en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en sv en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en sv en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en sv en en en en en en en en en en en en en en en en en en en en en en en en en en en sv en en en en en en en en en en en sv en en en en en en en en en en en en sv en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en ms en en en en es en es en en en es en de en en en de en en en en en en en en en fr cv es tr es en en en en ms en en en en en en fr en hbs_lat en en en en en en en fr cv es tr es en en en en de en en en ca en en en en en
I ordinarily just add the TweenMax.min.js to a site somewhere in the headers, and it's no exception with Joomla. A custom template, code inserted into the index.php file, thusly:
That apparently works without tripping up anything. But when I try to use a small .js file with theTweenMax script (inside a Joomla custom module)  that relies on the TweenMax code, nada.
Nothing much around here that addressed this issue. Does anyone have some idea of how to make TweenMax behave with Joomla?
Shaun Gorneau    1,503 Likes (Superhero)
By the looks of it, it looks like TweenMax is being called just before the head close ... perhaps your module's JS is being called before TweenMax.
You can either add TweenMax JS before that   call or just place all your custom and Tweenmax scripts in the footer before the body end tag in your index.php.
Thanks for the tip - but still no joy. I've inserted the Javascript like this, in the template's index.php file:
I am not exactly sure what's going on at this point. A look at the site via the browser's Console tool show no JS errors.
Jonathan    5,176 Likes (Superhero)
Posted December 4, 2015
Have you tried to make sure that the DOM is ready before running your animation?
Leave TweenMax and news_ticker.js in the bottom before you ending body tag. Then wrap your custom GSAP code in the below to make sure you only run the code after the DOM is ready and the window is loaded.
Also in the browser console and inspector check the order your scripts are being loaded in the network or the resources panel.
See if that helps?
Share on other sites
flash08    0 Likes (Newbie)
Posted December 4, 2015
Thanks, but that doesn't seem to do anything. Oddly enough, I was able to get this TweenMax code working (
See the Pen MKgrKr by MAW (@MAW) on CodePen
) on a large e-commerce site that was apparently written with a "casual" attitude toward HTML5 coding. No big deal - add a line to load TweenMax.min.js to the bottom of the page, insert the small piece of JS, and I was good to go.
With Joomla!, it seems that there is something else afoot. I have added other Javascript to the site without any problem, but for some reason, TweenMax is proving difficult. There are no JS errors being reported.
I really need to update this Joomla! site to 3.x, but the upgrade is a real minefield of incompatibility problems with some of the extensions currently being used.
Share on other sites
Jonathan    5,176 Likes (Superhero)
Posted December 4, 2015
I totally understand about Joomla! Joomla is on my second most hated list, with IE being number 1.
Did you look in the browser network panel to make sure the order of the scripts being loaded is right? .. see if you can take a screen shot of that or if you want to share the link to your site?
Share on other sites
flash08    0 Likes (Newbie)
Posted December 4, 2015
I'm going to check on that later when I can get back to this thing.
I used to really enjoy working on Joomla! sites, but lately the whole upgrade thing has been an enormous burden. The upgrades proceed pretty simply until you reach a level where the templates don't "translate" and you have to go in manually fuss with the db.
But for many things that require things like custom PHP scripting and ease of editing - except for system updates - Joomla! is still on my list. I do a lot of Wordpress development as well, but that's another story...
My "other" plan is to try and get GSAP working on my Joomla! test platform, and then puzzle out why it doesn't work in the site I'm editing.
Thanks again for your help!
Share on other sites
Jonathan    5,176 Likes (Superhero)
Posted December 4, 2015
I moved to WordPress after the Joomla 2.* .. WordPress is way more friendly and more fun to customize than Joomla. It has a great API and docs.. and is better for SEO than Joomla is.. as far CMS goes IMHO
Share on other sites
flash08    0 Likes (Newbie)
Posted December 4, 2015
I'm getting to like WP more and more. For sites that don't need a lot of complicated forms and such (I use Fabrik with Joomla! sites for this...) I use WP frequently. I haven't had much opportunity to examine what the current level of (plug-in derived, I guess) ACL that WP might offer. With a lot of users/rights, Joomla! seems to be the logical choice.
Share on other sites
Jonathan    5,176 Likes (Superhero)
Posted December 4, 2015
For user rights and roles in Wordpress you can use the any of these WP Plugins
User Role Editor: https://wordpress.org/plugins/user-role-editor/
Capability Manager Enhanced: https://wordpress.org/plugins/capability-manager-enhanced/
i personally use Members WP Plugin on my WordPress sites for giving users different roles and permissions.
Share on other sites
flash08    0 Likes (Newbie)
Posted December 4, 2015
Thanks - I'll have to give those a look.
Share on other sites
Sahil    2,541 Likes (Superhero)
Posted December 5, 2015
I had sort of similar problem while using TweenMax in Joomla, I was using firefox and it didn't show any errors in console window. The problem was due to MooTools which you can solve by setting jQuery as selector for TweenMax,
Share on other sites
flash08    0 Likes (Newbie)
Posted December 21, 2015
Thanks. I did some experimenting on a Joomla 3.4 site under development, and since MooTools apparently isn't being loaded by anything, TweenMax works perfectly, as expected. I suspect you have figured out why it didn't work with the earlier 2.54x version.
I am in the midst of some year-end site updating, and boy, Joomla! is no simple matter when it comes to this stuff! Virtually EVERYTHING needs to be fixed or changed, aside from importing of users and articles. VERY time consuming.
I finished updating the 3 or 4 Wordpress sites I run, and that took maybe five minutes apiece to get to the latest versions. No messing with incompatible menus or non-importable modules, etc.
Very different tools, I guess.
Share on other sites
Create an account or sign in to comment
You need to be a member in order to leave a comment
Sign up for a new account in our community. It's easy!
Register a new account
Already have an account? Sign in here.
Sign in to follow this   Followers 0
Go to topic listing
Recently Browsing   0 members
No registered users viewing this page.
GSAP animations and Joomla! 2.5, 3.x
“...obviously GSAP is incredible”
“Go and browse through FWA or Awwwards, then view source of anything you see that has cool animation and you will be surprised how widely GSAP is used.”
“With the incredible functionality, and the mind-blowing customer service, the price of Club GreenSock admission is well worth it!”
“GreenSock has encouraged me to play with the code, to dream up new and exciting things to do.”
“I’ve long felt like GSAP is the best kept secret in JavaScript.”
“There is no doubt that GreenSock is currently the best available tool for creating astonishing interactive websites and animation effects.”
“Really quite impressed with @GreenSock JS - even the small things.”
“@greensock it’s a great library that many people love, and I know you care deeply about performance :)”
“@greensock is just pure awesomeness. What more can be said?”
Sign Up For Our Newsletter
Get the latest updates on GreenSock products, exclusive offers, and more right in your inbox.
Your information will always be kept confidential.
Thanks for signing up!
Now you'll begin receiving the latest GreenSock updates, exclusive offers, and more right in your inbox. Welcome aboard.