Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Graphic Design (http://siteownersforums.com/forumdisplay.php?f=23)
-   -   How increase the size of the element on mouse hover without using juery with CSS3? (http://siteownersforums.com/showthread.php?t=138530)

arronmattwills 02-02-2014 09:52 PM

How increase the size of the element on mouse hover without using juery with CSS3?
 
Using CSS3 advanced property scale, we can simple scale, increase or decrease the size of the element in normal and hover effects in x and y axis also. The syntax will be like this:

Quote:

.teaserPanelBox:hover {
width: 250px;
background: blue;
border: 1px solid #eaeaea;
-webkit-transform: scale(260px);
-moz-transform: scale(260px);
-o-transform: scale(260px);
transform: scale(260px);
}
I have directly given hover effect to my class only.

Other features of transform: rotate, skew and translate. We can use this scale property of CSS3 in all advanced browsers, it will supports all android mobiles version browsers also.


All times are GMT -7. The time now is 01:44 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.