Jump to content
Search Community

CSSRule CDN issue

anteksiler test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi guys, I recently noticed an error with CSSRule that only happens when the css styles are served from CDN assets.

 

So if the stylesheet is inside a local path, the plugin works, but when the same stylesheet is loaded from CDN, CSSRule plugin says "cannot tween a null target", and I can verify the css rule is available on DOM.

 

In this particular case, it was a pseudo element, ":after".

Link to comment
Share on other sites

  • 1 year later...

It works fine for me, from local server or from web server.

 

only time CSSRulePlugin doesn't work is if you open local html file directly in chrome but if you open same file through local server then everything works fine. I tried searching if chrome is blocking cross origin access to cssRules but found nothing. It can be server configuration issue but am not sure. Maybe you guys are using http cdn links on your https site?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...