# Help with cordova-plugin-qrscanner / How to make your app completely transparent

**URL:** <https://forum.ionicframework.com/t/help-with-cordova-plugin-qrscanner-how-to-make-your-app-completely-transparent/69732>\
**Category:** ionic-v3\
**Created:** [November 10, 2016, 12:42am UTC](https://forum.ionicframework.com/t/help-with-cordova-plugin-qrscanner-how-to-make-your-app-completely-transparent/69732 "2016-11-10T00:42:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreasGassmann](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@AndreasGassmann](https://forum.ionicframework.com/u/AndreasGassmann)\
**Post date:** [November 10, 2016, 12:42am UTC](https://forum.ionicframework.com/t/help-with-cordova-plugin-qrscanner-how-to-make-your-app-completely-transparent/69732/1 "2016-11-10T00:42:03Z")

</div>

Hi,

I recently came across this new qr-scanner plugin: [https://github.com/bitpay/cordova-plugin-qrscanner](https://github.com/bitpay/cordova-plugin-qrscanner). It looks very interesting because it allows you to add your own custom HTML/CSS overlay. However, I’m having a hard time getting it to work with Ionic.

When I start the scanner, it starts in the background (behind the app) and scans codes successfully. However, I cannot see the camera itself because the app is “on top of it”. Just to see if it’s working, I added the “background-color: transparent” style to all elements on the page using this method: [http://stackoverflow.com/questions/9252839/simplest-way-to-remove-all-the-styles-in-a-page](http://stackoverflow.com/questions/9252839/simplest-way-to-remove-all-the-styles-in-a-page). Then I was able to see the camera, but obviously the app is unusable after that.

I tried to find the element(s) that need to be made transparent using the dev tools on chrome, but somehow I was unable to figure it out. So my question is: How do I make one page in my app completely transparent while keeping everything else working?

Thanks a lot for your help!

---

<div class="post-metadata">

**Author:** ![Ellezo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ellezo/32/104261_2.png) [@Ellezo](https://forum.ionicframework.com/u/Ellezo)\
**Post date:** [November 11, 2016, 12:01am UTC](https://forum.ionicframework.com/t/help-with-cordova-plugin-qrscanner-how-to-make-your-app-completely-transparent/69732/2 "2016-11-11T00:01:40Z")

</div>

+1 on this. Having the same issue using CameraPreview plugin.

---

<div class="post-metadata">

**Author:** ![AndreasGassmann](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@AndreasGassmann](https://forum.ionicframework.com/u/AndreasGassmann)\
**Post date:** [November 21, 2016, 8:52am UTC](https://forum.ionicframework.com/t/help-with-cordova-plugin-qrscanner-how-to-make-your-app-completely-transparent/69732/3 "2016-11-21T08:52:56Z")

</div>

I found an article that describes how to use the CameraPreview plugin here: [http://www.joshmorony.com/ionic-go-create-a-pokemon-go-style-interface-in-ionic-2/](http://www.joshmorony.com/ionic-go-create-a-pokemon-go-style-interface-in-ionic-2/)

This goes into the right direction, but it only works when I manually set the styles in the scss files. I’m still looking for a way to do this while the app is running (using selecting the elements with js and setting their background to transparent didn’t work for some reason)

---

<div class="post-metadata">

**Author:** ![ronaldemo](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@ronaldemo](https://forum.ionicframework.com/u/ronaldemo)\
**Post date:** [July 20, 2017, 4:09am UTC](https://forum.ionicframework.com/t/help-with-cordova-plugin-qrscanner-how-to-make-your-app-completely-transparent/69732/4 "2017-07-20T04:09:18Z")

</div>

Add the following lines into src/theme/variables.scss:

// Shared Variables  
$background-color: transparent;

// App iOS Variables  
// --------------------------------------------------  
// iOS only Sass variables can go here  
$content-ios-transition-background: transparent;

They make background of app transparent.
