Created
January 28, 2026 09:20
-
-
Save tdmrhn/5132b48e97ed5f9cd908097601b1dec2 to your computer and use it in GitHub Desktop.
Blocksy 2 Product Flexy Slider Image Moving Animation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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