Jump to content
GreenSock

mamin

remove black background in banner animation

Recommended Posts

Hi 

i used this code

but this code have black background 

how to remove black background?

See the Pen aPERKO by nimaina (@nimaina) on CodePen

Link to comment
Share on other sites

you are using pixi.js so you need to set that in the app settings like:

 

var app = new PIXI.Application( {
  view: document.querySelector("#canvas"),
  backgroundColor:0xff0000
});

 

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

There's also a transparent option.

 

var app = new PIXI.Application( {
  view: document.querySelector("#canvas"),
  transparent: true
});

 

  • Like 1
  • Thanks 1
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.
×