Results 1 to 6 of 6

Thread: Whats does this CSS do?

  1. #1
    Join Date
    Jan 2006
    Location
    Derbyshire, UK
    Posts
    74
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Whats does this CSS do?

    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?

    Code:
    @-webkit-keyframes pop {
    	from {
    		-webkit-transform: scale(.1);
    		opacity: 0;
    	}
    	85% {
    		-webkit-transform: scale(1.05);
    		opacity: 1;
    	}
    	to {
    		-webkit-transform: scale(1);
    	}
    }

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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).

  3. #3
    Join Date
    Jan 2006
    Location
    Derbyshire, UK
    Posts
    74
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default

    Any ideas why the @ symbol is present and why it errors in Dreamweaver?

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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?

  5. #5
    Join Date
    Jan 2006
    Location
    Derbyshire, UK
    Posts
    74
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default

    No they're fine, thanks anyway traq, I'll update the tread if I ever figure it out.

  6. #6
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    have you tried this on a page in Chrome or Safari?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •