@cntrl-site/sdk-nextjs 1.0.1 → 1.0.2
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.
|
Binary file
|
package/lib/components/Item.js
CHANGED
|
@@ -119,7 +119,7 @@ const Item = ({ item, sectionId, articleHeight, isInGroup = false }) => {
|
|
|
119
119
|
position: ${sticky ? 'sticky' : 'absolute'};
|
|
120
120
|
top: ${sticky ? `${(0, getAnchoredItemTop_1.getAnchoredItemTop)(area.top - sticky.from, sectionHeight, area.anchorSide)}` : 0};
|
|
121
121
|
pointer-events: auto;
|
|
122
|
-
transition: opacity 0.
|
|
122
|
+
transition: opacity 0.2s linear 0.1s;
|
|
123
123
|
display: ${hidden ? 'none' : 'block'};
|
|
124
124
|
height: fit-content;
|
|
125
125
|
transform-origin: ${ScaleAnchorMap_1.ScaleAnchorMap[scaleAnchor]};
|
package/package.json
CHANGED
package/src/components/Item.tsx
CHANGED
|
@@ -178,7 +178,7 @@ export const Item: FC<ItemWrapperProps> = ({ item, sectionId, articleHeight, isI
|
|
|
178
178
|
position: ${sticky ? 'sticky' : 'absolute'};
|
|
179
179
|
top: ${sticky ? `${getAnchoredItemTop(area.top - sticky.from, sectionHeight, area.anchorSide)}` : 0};
|
|
180
180
|
pointer-events: auto;
|
|
181
|
-
transition: opacity 0.
|
|
181
|
+
transition: opacity 0.2s linear 0.1s;
|
|
182
182
|
display: ${hidden ? 'none' : 'block'};
|
|
183
183
|
height: fit-content;
|
|
184
184
|
transform-origin: ${ScaleAnchorMap[scaleAnchor]};
|