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.
- package/dist/styles.css +6 -6
- 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,
|
|
44
|
-
is
|
|
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:
|
|
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:
|
|
53
|
+
animation-duration: 0s;
|
|
54
54
|
}
|