Skip to content
Advertisement

How to keep the image static and the first element temporarily flexed

JavaScript
JavaScript
So I would like to keep the images and text in from of the img frozen. And the first element to be flexed: 2 as default and flex back to 1 when other elements are hovered. IDK is there is a better they then flex but this could work fine I think. Doesnt seem to work on this snippet but on separate files it works.

Advertisement

Answer

Your code is almost good. Two things you need to add:

JavaScript

And

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement