Jump to content
Search Community

Can I use GSAP CSSRulePlugin with the website using Google Fonts?

Huanyee test
Moderator Tag

Recommended Posts

As shown in the console of my Codepen, it seems that CSSRulePlugin is unavailable on sites using Google Fonts, as it will display the following error:

 

DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at Object.getRule

 

Is there anyway for me to exclude the stylesheet or any other way to solve this issue?

(I'm sorry that I can't quite reproduce this issue because Codepen seems not to allow me to include Google Fonts in the CSS)

See the Pen bGNoWRV by eric-chuang (@eric-chuang) on CodePen

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...