Skip to content

Instantly share code, notes, and snippets.

@tdmrhn
Created January 28, 2026 09:20
Show Gist options
  • Select an option

  • Save tdmrhn/5132b48e97ed5f9cd908097601b1dec2 to your computer and use it in GitHub Desktop.

Select an option

Save tdmrhn/5132b48e97ed5f9cd908097601b1dec2 to your computer and use it in GitHub Desktop.
Blocksy 2 Product Flexy Slider Image Moving Animation
/* flexy slider from right to left animation */
/* hide flexy pills/thumbnails - optional
.ct-product-gallery-container .flexy-pills {
display: none;
}
*/
.ct-product-gallery-container .flexy-view .flexy-item-is-visible .ct-media-container img {
--flexy-slide-pan-distance: 80px;
transform: translateX(var(--flexy-slide-pan-distance));
animation: ct-slide-pan 7s linear both;
will-change: transform;
}
/* hide sub-pixel flash from previous slide */
.ct-product-gallery-container .flexy-view
.flexy-item:not(.flexy-item-is-visible) .ct-media-container img {
margin-left: -5px;
}
@keyframes ct-slide-pan {
from {
transform: translateX(var(--flexy-slide-pan-distance));
}
to {
transform: translateX(calc(var(--flexy-slide-pan-distance) * -1));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment