Jump to content
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.