I have an element:
elem
transform translateY(5px) scale(1.2)
Now on hover I want it to move down an additional 5px
elem:hover
transform translateY(5px)
Obviously this would overwrite the previous transform. Is there anyway to set it to move an additional 5 without knowing what the previous transform state is?
Thanks.
#elem:hover { transform: add translateY(5px); }. Unfortunately, such a thing doesn't exist yet.scale: 1.5; rotate: 45deg; translate: -50%;etc. But, as of 17.03.2023 they have only 88% support on CanIUse