Hi,
I wanted to use CSSRule plugin to tween some pseudo elements on my webpage.
I'm using SASS to write my CSS.
My target looks like this :
.home,
.home.do-not-anim{
#container{
&:before{....}
}
}
and my rule like this :
var rule = CSSRulePlugin.getRule(".home #container:before");
I saw that the rule must match the exact rule of CSS. So i tried to change it with :
var rule = CSSRulePlugin.getRule(".home #container:before, .home.do-not-anim #container:before");
But the result is always the same :
CSSRulePlugin.min.js:12 Uncaught TypeError: Cannot read property 'length' of null
I even try to simplify the rule at it's maximum, like this :
var rule = CSSRulePlugin.getRule("#container");
witch is an existing rule in my CSS, but still, Uncaught TypeError......
Result is the same when i copy paste the rule in the console...
Did i miss something ??