Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Removed

- Skeleton shimmer animation to reduce rendering cost, keeping the static gray placeholder.

## [2.22.1] - 2026-07-17

### Fixed
Expand Down
9 changes: 2 additions & 7 deletions react/components/ShelfSkeleton/SkeletonPiece.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ import './style.css'
import React from 'react'
import { useCssHandles } from 'vtex.css-handles'

const CSS_HANDLES = [
'recommendationSkeletonPiece',
'recommendationSkeletonPieceShimmer',
]
const CSS_HANDLES = ['recommendationSkeletonPiece']

export function SkeletonPiece() {
const handles = useCssHandles(CSS_HANDLES)

return (
<div
className={`${handles.recommendationSkeletonPiece} bg-muted-4 br3 center`}
>
<div className={`${handles.recommendationSkeletonPieceShimmer}`} />
</div>
/>
)
}
24 changes: 0 additions & 24 deletions react/components/ShelfSkeleton/style.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/* Skeleton animation */
@keyframes shimmer-anim {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(50%, 0, 0);
}
}

.recommendationSkeletonPiece {
height: 550px;
width: 300px;
overflow: hidden;
}

@media screen and (max-width: 1024px) {
Expand All @@ -21,19 +10,6 @@
}
}

.recommendationSkeletonPieceShimmer {
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0.30),
rgba(255, 255, 255, 0)
);
background-size: 50% 100%;
animation: shimmer-anim 1s linear infinite;
}

.recommendationShelfContainer {
gap: 1.5rem;
}
Loading