Closed robberfree closed 7 years ago
CSSRulePlugin.getRule() is just for finding an existing rule that you already have set up - it's not for creating a new rule or anything like that. Sorry.
I have this idea,because I want to keep Dom clean, and want to do almost decoration animation on pseudo element.Maybe I should write a plugin to do thing like this or just do decoration animation on common Dom element.
thanks very much. GSAP is wonderful.
Yeah, you'll probably get better performance if you directly animate the DOM elements inline styles anyway rather an a CSS rule (unless it's affecting a LOT of elements simultaneously).
Happy tweening!
when I use CSSRulePlugin. for example,I only write
in a .css file. when I want only to animate the first li of ul
I can't get the pseudo element rule. can it possible?I read the code.now CSSRulePlugin just search the cssRule,not really detect computed style.
Thanks a lot.