I was able to achieve the enlarging in Firefox by doing -moz-transition: scale(1.4); but the animation part does not work. Does Firefox have an equivalent to the ease-in-out?
At the moment, the current stable release of Firefox doesn’t support transitions, no.
But the nightly build of Firefox (3.7) is supposed to have support for transitions, under the vendor prefix “-moz-transition:”. Since 3.7 isn’t a stable build yet, we’ll just have to wait in the meantime. =)
The CSS3 spec for transitions might actually be finalised by the time Firefox 3.7 is released to public, so there mightn’t even be a need for using the vendor-specific prefix.
I’m trying to employ the same thing for a nav ul of mine, but the issue is when I hover and the current link scales, it covers up the other links, plus it does not returning smoothly to the beginning; it jumps. I don’t have a clue as how to make the other nav elements move, or be pushed out of the way, by the nav link that is scaling currently, or how to fix the the jumpieness of the link when I mouse away from it. I’m very new to web design (6 months) so my knowledge is swiss cheese right now. I would appreciate some help on the issue, as I’m a little lost currently.
Here is my css for ul. I’m sure I’m missing some obvious stuff, so any help will be much appreciated!
#intro-container ul {
font-size: 20px;
float: right;
margin: 20px 0;
padding: 80px 0 0 0;
text-align: right;
list-style: none;
}
#intro-container ul li {
}
#intro-container ul li a {
display: block;
font-size:45px;
padding: 5px;
-webkit-transition: -webkit-transform 0.5s ease;
-moz-transition: -moz-transform 0.5s ease;
transition: transform 0.5s ease;
}
#intro-container ul li a:hover {
-webkit-transform: scale(1.25);
-moz-transform: scale(1.25);
-o-transform: scale(1.25);
transform: scale(1.25);
-webkit-transform-origin: top right;
-moz-transform-origin: top right;
-o-transform-origin: top right;
transform-origin: top right;
}
Again, thank you in advance for any assistance anybody is willing to provide. This stuff is confusing for a newbie!
I am trying to scale small icons using this method. It works for moz,firefox, chrome, safari.. however couldnt get it to work for ie7-8. I think there is no direct support for such. Do you have any javascript or similar that does similar job?
Hi there,
nice effect, I am using it as a main rollover effect in a website now, and used it before too but, can’t have my head around solving a problem. Meanwhile the transition runs, other elements in the view start doing some slightly perceptible but very annoying undesired movements too. Sometimes they are other images, other times text goes slightly bolder, and ALWAYS the image running the transition has an start and an end blurry moment, very short but very horrible. What am I missing here?
HI, I’m having this exact same problem of other elements on the page slightly moving and jittering or whatever. Also the blurry fade in issue with the zoom. Did you ever find a solution to fix this? Thanks.
Hey, it looks like it is the order of the parameters,
transition: [transition-property] [transition-duration] [transition-timing-function] [transition-delay];
try :
-webkit-transition: opacity .6s ease-in-out
And, as far as I am aware ‘fade’ is not a CSS property so no CSS transition can run on it, this is why I modified your rule from ‘fade’ to opacity.
and there are thousands of articles about CSS transitions ou there, but the following is one of the best :) :
I’m using this technique to scale up icons in links on hover. It works but the icons pop back to normal size once the transition is complete instead of staying at the bigger size as long as you’re hovering. You can see it at my site here:
Ive never used proper coding before and im trying to build a website for custom shirt designs. I was wondering what the full code is and how to apply that to an image gallery.
Thanks for the help
much appreciated
Sue
If the element you want to scale is an img with 100% width, then the code provided here can be problematic in Safari. The scale animation will run on page load as well as hover. To fix this, change “all” in the transition property to “transform”. Like so:
on-mouse hover image is bigger than on-mouse out we can same position. in this image paragraph their .only image is bigger than .we can not change the paragraph …..how do you…. using CSS properties…. ?
answer….. tell me…..
I was able to achieve the enlarging in Firefox by doing -moz-transition: scale(1.4); but the animation part does not work. Does Firefox have an equivalent to the ease-in-out?
At the moment, the current stable release of Firefox doesn’t support transitions, no.
But the nightly build of Firefox (3.7) is supposed to have support for transitions, under the vendor prefix “-moz-transition:”. Since 3.7 isn’t a stable build yet, we’ll just have to wait in the meantime. =)
The CSS3 spec for transitions might actually be finalised by the time Firefox 3.7 is released to public, so there mightn’t even be a need for using the vendor-specific prefix.
Its really Cool… Thanks
Ya its really working.
simple code
and simple zoom.
thank you so much
thansk to you, my saint
I have a question about this technique.
I’m trying to employ the same thing for a nav ul of mine, but the issue is when I hover and the current link scales, it covers up the other links, plus it does not returning smoothly to the beginning; it jumps. I don’t have a clue as how to make the other nav elements move, or be pushed out of the way, by the nav link that is scaling currently, or how to fix the the jumpieness of the link when I mouse away from it. I’m very new to web design (6 months) so my knowledge is swiss cheese right now. I would appreciate some help on the issue, as I’m a little lost currently.
Here is my css for ul. I’m sure I’m missing some obvious stuff, so any help will be much appreciated!
#intro-container ul {
font-size: 20px;
float: right;
margin: 20px 0;
padding: 80px 0 0 0;
text-align: right;
list-style: none;
}
#intro-container ul li {
}
#intro-container ul li a {
display: block;
font-size:45px;
padding: 5px;
-webkit-transition: -webkit-transform 0.5s ease;
-moz-transition: -moz-transform 0.5s ease;
transition: transform 0.5s ease;
}
#intro-container ul li a:hover {
-webkit-transform: scale(1.25);
-moz-transform: scale(1.25);
-o-transform: scale(1.25);
transform: scale(1.25);
-webkit-transform-origin: top right;
-moz-transform-origin: top right;
-o-transform-origin: top right;
transform-origin: top right;
}
Again, thank you in advance for any assistance anybody is willing to provide. This stuff is confusing for a newbie!
Richard Nash,
Los Angeles
You are trying to scale the text? Perhaps you should just transition the font-size property.
Hello,
I am trying to scale small icons using this method. It works for moz,firefox, chrome, safari.. however couldnt get it to work for ie7-8. I think there is no direct support for such. Do you have any javascript or similar that does similar job?
To be patched. It works perfectly fine in all major browsers now. :)
Really liked this one Chris. Looks great, cheers!
nice tricks with image – thank you guys (beginner)
I was stuck with smooth scaling for 2 hours – and here I found this short and sweet solution. Thank you so much!
Hi there,
nice effect, I am using it as a main rollover effect in a website now, and used it before too but, can’t have my head around solving a problem. Meanwhile the transition runs, other elements in the view start doing some slightly perceptible but very annoying undesired movements too. Sometimes they are other images, other times text goes slightly bolder, and ALWAYS the image running the transition has an start and an end blurry moment, very short but very horrible. What am I missing here?
HI, I’m having this exact same problem of other elements on the page slightly moving and jittering or whatever. Also the blurry fade in issue with the zoom. Did you ever find a solution to fix this? Thanks.
“-webkit-transition: .6s ease-in-out fade ” this code is not working in google chrome.In mozilla its work fine.Please help me out.
Hey, it looks like it is the order of the parameters,
transition: [transition-property] [transition-duration] [transition-timing-function] [transition-delay];
try :
-webkit-transition: opacity .6s ease-in-out
And, as far as I am aware ‘fade’ is not a CSS property so no CSS transition can run on it, this is why I modified your rule from ‘fade’ to opacity.
and there are thousands of articles about CSS transitions ou there, but the following is one of the best :) :
Reference link is dead.
Really nice! I have a question…does it work on IE8?
Nope, neither transform or transition work in IE8. Check out http://caniuse.com/ — it is a great resource for looking this stuff up.
Very nice… I’ve used the height mode (1, 1.1)…
I’m using this technique to scale up icons in links on hover. It works but the icons pop back to normal size once the transition is complete instead of staying at the bigger size as long as you’re hovering. You can see it at my site here:
http://s542306109.onlinehome.us/webi1911/tokyo-pop/index.html#scene-8
This is the relevant html:
And here’s my CSS:
Does anyone know if there’s a way to fix this so the icons stick at the larger transitioned size until you mouse out?
Hi, yeah it seems weird that it only changes for a limited time on hover. Try changing the link to display: block or inline-block, seems to fix it.
Kenny,
Thanks so much, that fixed it!
Your Website is dead Ma’am
Can you Please give me fixed responsive bar with left side company name using CSS
how pixel increase in scale(1.1) property? Or scale default value?
Don´t get this to work in Safari though.
Ok, so i did. :)
Ive never used proper coding before and im trying to build a website for custom shirt designs. I was wondering what the full code is and how to apply that to an image gallery.
Thanks for the help
much appreciated
Sue
If the element you want to scale is an img with 100% width, then the code provided here can be problematic in Safari. The scale animation will run on page load as well as hover. To fix this, change “all” in the transition property to “transform”. Like so:
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Err, like so:
.grow { transition: transform .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Awesome :) Thank you ;)
Thanks , its work nicely.
HTML:
CSS:-
.section{position:relative;}
.hover{width:342px; height:260px; position:absolute; background-color:rgba(0,0,0,0.75); left:0; top:0; opacity:0; transition:all 0.7s ease-in-out;}
.hover:hover{opacity:1; transition: scale(1.1);}
HTML:
on-mouse hover image is bigger than on-mouse out we can same position. in this image paragraph their .only image is bigger than .we can not change the paragraph …..how do you…. using CSS properties…. ?
answer….. tell me…..
Wow thanks man i was looking for something simple like this thanks ;)
Hi ,
Here I have tried in some another way . This is also simple and nice.
HTML Code:
In the image source you can give your image path.
Try this one. This is also nice.
Thanking you.
thnx
thanks you
Thanks. Perfect.
I want to create my bar chart which should increase in height when mouse is hovered ,so thank’s for this tutorial it is very helpful for me.
any suggestions on how to center the enlarged image within the page on hover?
Really really really nice!!!
reaaly thanks man. save lots of time and only just 2 line of codes.
Thanks!
Is there any Browser setting that can block/disable scale on hover and other transitions?
They may show great technical know-how- but as a UX, they are mostly annoying and distracting …. !
The text inside the button blurs during the transform. Anyone has fix for that?
… And if for any reason the styles above are not taking effect on the targeted element, give it a
display: block
property.Thank you for this
it works fine but the problem was it gets blurry for .1s when i hover on it!
Cool
But how do I blur the other elements out while one is scaled out