concertina 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/styles.css +6 -6
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -40,15 +40,15 @@
40
40
  }
41
41
  }
42
42
 
43
- /* When switching between items, suppress all animations so the layout
44
- is immediately in its final state for scroll pinning.
43
+ /* When switching between items, run animations instantly so layout
44
+ is in its final state for scroll pinning. Uses duration: 0s rather
45
+ than animation: none to avoid re-triggering the close animation
46
+ when data-switching is cleared after paint.
45
47
  data-switching is set by useConcertina(), cleared after paint. */
46
48
  [data-switching] .concertina-content[data-state="closed"] {
47
- animation: none;
48
- height: 0;
49
- opacity: 0;
49
+ animation-duration: 0s;
50
50
  }
51
51
 
52
52
  [data-switching] .concertina-content[data-state="open"] {
53
- animation: none;
53
+ animation-duration: 0s;
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "concertina",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "React hook for scroll-pinned Radix Accordion panels. Zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",