views:

135

answers:

1

Any body has a Good example showing how to use scale with -moz-transform ?

+1  A: 

The MDC page you linked to actually explains it pretty well.

I made you a quick example. Demo: http://jsfiddle.net/SZ87b/1/ Code:

<!doctype html>
<title>-moz-transform scale example</title>
<style>
 p { font-size: 5em; text-align: center; }
 p:hover { -moz-transform: scale(2); }
</style>
<p>Foo bar</p>
Mathias Bynens
dos the html5 doc type is must?
Mithun P
@Mithun: Nope, the HTML5 DOCTYPE is not required for this example to work. A browser that understands the proprietary `-moz-transform` CSS property is.
Mathias Bynens