Opacity does not work with 2021.9.x
See original GitHub issueChecklist:
- [x ] I updated to the latest version available
- [x ] I cleared the cache of my browser
Release with the issue: 2021.9.x
Last working release (if known): 2021.8.x
Browser and Operating System: All
Description of problem:
Javascript errors shown in the web inspector (if applicable):
Additional information: Also, the grey circle/oval does not disappear when clicking toggle icon unless you click elsewhere on the screen.
image: /local/floorplan/darkpanel.png
style: |
ha-card:first-child {
background: rgba(42, 46, 48, 1)
}
elements:
- type: custom:config-template-card
variables:
- states['sensor.sunlight_opacity'].state
entities:
- sun.sun
- sensor.sunlight_opacity
element:
type: image
entity: sun.sun
image: /local/floorplan/transp.png
action: none
state_image:
above_horizon: /local/floorplan/lightpanel.png
below_horizon: /local/floorplan/transp.png
style:
left: 50%
mix-blend-mode: lighten
opacity: ${ states['sensor.sunlight_opacity'].state }
style:
height: 100%
left: 50%
mix-blend-mode: lighten
opacity: 10%
top: 50%
width: 100%
tap_action:
action: none
hold_action:
action: none
- type: custom:config-template-card
variables:
COUCHB: states['light.couch_light'].attributes.brightness
entities:
- light.couch_light
element:
type: image
entity: light.couch_light
image: /local/floorplan/transp.png
state_image:
'on': /local/floorplan/transcouch.png
tap_action:
action: none
style:
left: 50%
style:
mix-blend-mode: lighten
opacity: ${ states['light.couch_light'].attributes.brightness / 255 }
width: 100%
top: 50%
left: 50%
- type: custom:config-template-card
entities:
- light.table_light
element:
type: image
entity: light.table_light
image: /local/floorplan/transp.png
state_image:
'on': /local/floorplan/transtablamp.png
tap_action:
action: none
style:
left: 50%
style:
mix-blend-mode: lighten
opacity: >-
${states['light.table_light'].state === 'on' ?
(states['light.table_light'].attributes.brightness / 255) :'0'}
top: 50%
width: 100%
left: 50%
Issue Analytics
- State:
- Created 2 years ago
- Comments:29 (11 by maintainers)
Top Results From Across the Web
opacity - CSS: Cascading Style Sheets - MDN Web Docs
opacity applies to the element as a whole, including its contents, even though the value is not inherited by child elements.
Read more >Changing the opacity of a body does not work in Fusion 360
Issue: Changing the opacity of a body does not work in Fusion 360. Causes: Body opacity definitions are not applied to individual ......
Read more >Layer opacity and blending modes in Adobe Photoshop
Learn how to use layer opacity and blending modes in Adobe Photoshop ... any channels you do not want to include when the...
Read more >How does opacity work in QML? - Stack Overflow
So opacity goes along the same line as other properties like x , y , etc. Thus, even though child has opacity of...
Read more >Change object transparency in Pages on Mac - Apple Support
You can create interesting effects by making objects more or less opaque. When you put a low-opacity object on top of another object,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take a look at the PR this weekend
1.3.5 released with @smonesi fix applied