@reuters-graphics/graphics-components 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ export let stackBackground = true;
11
11
  <div
12
12
  class="step-background step-{i + 1} w-full absolute"
13
13
  class:visible="{stackBackground ? i <= index : i === index}"
14
- class:hidden="{stackBackground ? i > index : i !== index}"
14
+ class:invisible="{stackBackground ? i > index : i !== index}"
15
15
  >
16
16
  <svelte:component
17
17
  this="{step.background}"
@@ -22,8 +22,13 @@ export let stackBackground = true;
22
22
  {/each}
23
23
 
24
24
  <style>.step-background {
25
+ opacity: 0;
26
+ will-change: opacity;
25
27
  transition: 0.35s opacity ease;
26
28
  }
27
- .step-background.hidden {
29
+ .step-background.visible {
30
+ opacity: 1;
31
+ }
32
+ .step-background.invisible {
28
33
  opacity: 0;
29
34
  }</style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",