@trackunit/css-core 1.22.9-alpha-0611f91ebcd.0 → 1.22.11-alpha-fb0675e61ad.0
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/package.json +1 -1
- package/src/lib/manager.css +28 -0
package/package.json
CHANGED
package/src/lib/manager.css
CHANGED
|
@@ -35,3 +35,31 @@ body,
|
|
|
35
35
|
animation: none;
|
|
36
36
|
mix-blend-mode: normal;
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
* Shared-element morphs from @trackunit/react-view-transition-hooks. The class
|
|
41
|
+
* is set alongside the transition name and says how the two snapshots scale
|
|
42
|
+
* while the box animates between source and target.
|
|
43
|
+
*/
|
|
44
|
+
::view-transition-group(*.morph-image),
|
|
45
|
+
::view-transition-group(*.morph-text) {
|
|
46
|
+
animation-duration: 300ms;
|
|
47
|
+
animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
::view-transition-group(*.morph-image) {
|
|
51
|
+
overflow: clip;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
::view-transition-old(*.morph-image),
|
|
55
|
+
::view-transition-new(*.morph-image) {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
object-fit: cover;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
::view-transition-old(*.morph-text),
|
|
62
|
+
::view-transition-new(*.morph-text) {
|
|
63
|
+
width: auto;
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|