|
Scale up images onclick
I'm cluelessly trying to piece together a personal site, I’ve hunted around and can’t find this covered on here... I think it used to be bad practice to resize an image with code but SVG files render beautifully at any scale and I’d like to try this out:
I’d like to have a series of images, each one doubling in scale when clicked then returning to its original size when clicked a second time.
Could I use transform: scale(2) somewhere in there to make it extra streamlined?
Thanks for reading!
|