Ash Shahi
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Ash Shahi
-
-
Hi,
I have the following code:
var rule = CSSRulePlugin.getRule(".myClass:before"); //get the rule TweenLite.to(rule, 3, {cssRule:{color:"#0000FF"}});
But it looks like it is being blocked by the newer versions of chrome and Firefox.
In chrome I get
QuoteFailed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
and in Firefox I get
QuoteDOMException: "The operation is insecure.
Is it time stop using this plugin or is there a way around this?
Thanks
CSSRulePlugin not longer works
in GSAP
Posted
I'm developing it locally, with vue and webpack. I've pulled the latest version from npm:
I've seen this example working in your codepen examples but when I copy your examples into my app both chrome and firefox block access to the DOM elements.
I've attached a screenshot.
Could this be related to this issue on stackoverflow?
https://stackoverflow.com/questions/49088507/cannot-access-rules-in-external-cssstylesheet
Thanks