View Full Version : Whats does this CSS do?
Burgin
06-06-2011, 04:41 AM
I've been examining some CSS code and came across the below example and wondered if anyone knew what it related to or does and why does it show as an error in dreamweaver?
@-webkit-keyframes pop {
from {
-webkit-transform: scale(.1);
opacity: 0;
}
85% {
-webkit-transform: scale(1.05);
opacity: 1;
}
to {
-webkit-transform: scale(1);
}
}
it's a css3 transition, using webkit's vendor prefix. I'm not completely familiar with them, but this seems to fade something in while scaling it from really small to slightly larger than actual size, then back down to actual size (kinda like a "zoom in and bounce" effect).
Burgin
06-06-2011, 11:17 AM
Any ideas why the @ symbol is present and why it errors in Dreamweaver?
I have no idea. I know about several @-rules, but not this. It may be proprietary to webkit browsers, though that would be an unusual move on their part.
Dreamweaver may be throwing an error simply because it doesn't understand it. Do other vendor-prefixed css rules (like -webkit-border-radius, for example) throw an error?
Burgin
06-08-2011, 12:26 PM
No they're fine, thanks anyway traq, I'll update the tread if I ever figure it out.
have you tried this on a page in Chrome or Safari?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.