Log in

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);
}
}

traq
06-06-2011, 05:14 AM
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?

traq
06-06-2011, 03:11 PM
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.

traq
06-08-2011, 01:16 PM
have you tried this on a page in Chrome or Safari?