cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a Background image on 2D Experience

SOLVED
Marble

Adding a Background image on 2D Experience

Hi,

   I'm trying to add a background image on 2D Project with Thingworx Studio.

With this code: (In the Home View in my case)

 

.Home{

background-image: url(#{$resources}/Uploaded/AutoSpire.jpg);
opacity: 0.2;

}

I can see the image on Thingworx Studio editor, but not on "PREVIEW" neither on mobile platform.

Any ideas?

Lionel

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Adding a Background image on 2D Experience

This is a bug. You can change your CSS to this and it should work:

 

[twx-view=Home]{

background-image: url(#{$resources}/Uploaded/AutoSpire.jpg);
opacity: 0.2;

}

 

2 REPLIES 2

Re: Adding a Background image on 2D Experience

This is a bug. You can change your CSS to this and it should work:

 

[twx-view=Home]{

background-image: url(#{$resources}/Uploaded/AutoSpire.jpg);
opacity: 0.2;

}

 

Re: Adding a Background image on 2D Experience

Hello,

  thanks for your help. It's working.

Lionel