Forum

Thread tagged as: Question

Animated GIFs play in Product but not Product List

Hi there!
I'd like to use an animated gif as a product image in product_list.html but the gif won't auto-play on this page.
The same gif WILL auto-play through product.html as well as on the blog pages via post.html and post_in_list.html.
Is there a reason for this / a way to play GIFs on the product list page?
Thank you!

Olympia Kyriakides

Olympia Kyriakides 1 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is one resized and the other not?

Hi Drew!
product_list.html does resize it, however the same asset resizes (to different scale) in both blog templates and still auto-plays.
It is not resized in product.html and also auto-plays there.

The only difference is that both height and width resize in Blog, whereas only width resizes in product_list.html.
I could try setting height to resize as well...

Drew McLellan

Drew McLellan 2638 points
Perch Support

Let us know how you get on.