Share Posted April 8, 2020 Hi when using pixiPlugin with filters, things like brightness, blur etc you often need to set the resolution of the filer to stop the image becoming blurry. gsap.to(bunny,{pixi:{brightness:1.3,resolution:2},yoyo:true,repeat:-1,duration:2} This works - you can see from the object I've logged in the console in the code pen that its resolution has been set correctly. It does however complain of Invalid property resolution set to 2 Missing plugin? gsap.registerPlugin() If there any way to register a new property in a plugin? Thanks Matt See the Pen VwvZxGJ by macguffin (@macguffin) on CodePen 1 Link to comment Share on other sites More sharing options...
Share Posted April 8, 2020 Nah, sorry about that - I'll just have the plugin ignore that property as a "real" one (it's only for when you're doing a filter-related animation). As you discovered, it doesn't actually cause any problems. You can safely ignore that warning in the console. You can preview the upcoming release with that fix at https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/PixiPlugin3.min.js 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now