Variant images causing styling issue

New Member
2 0 0



I have had an issue for the last few days where I am trying to build a sticky bar at the top of my Shopify website. I am reusing the code for the image slider I already have and have ran into a number of issues.

I want to be able to still pick which variation I need.

The problem I have is that when I scroll down, which is how the sticky bar is currently activated, the images resize fine but when I return to the top of the page they maintain their smaller version from the sticky bar. Does anybody have a solution to this or even a better way to go about it.


I had tried getting the images for all the variants separately but didn't have much joy.


If anyone can give some guidance on where to go that would be a great help! I don't need someone to do it for me just somebody who can point me in the right direction as I've been going around in circles for the last few days.


If this is the wrong place to post as well please let me know and I'll move it. Also I am happy to go into the files and custom code it too.


Thanks in advance!