I have a pure CSS menu and would like to provide a little visual feedback. As the cursor passes over an item, I would like it to magnify to 110% or 120% of its normal size.
I just use text in an unordered list, no images.
Can this be done easily?
Update: MS IE 7+ (any thing else is a bonus & probably free anyway)
You don’t really need JavaScript for this. CSS has the
transformproperty to apply affine transforms to elements. Just do something likeli:hover { transform: scale(1.2); }.It works in all recent version of Safari and Firefox, and IE 9 and newer — and if you’re open to JavaScript solutions, Transformie adds support for 6+.
I made a Fiddle to illustrate (includes all the browser prefix versions, but I didn’t actually test it in all the browsers, so I might have bungled something somewhere).