Pure CSS Implementation of cool cartoon portrait and Blink Effect

Source: Internet
Author: User

Product Design Technology Trends

A major technological trend in current product design and development in addition to responsiveness,

and try to use CSS/HTML5 technology as an alternative to images, which allows for very good design extensibility and page access performance.

CSS Cartoon Instance

Here is a British webproject design and development of a very cool cartoon avatar, using a pure CSS implementation, but also simple to switch skin tone:)


Demo page Visit link, Simpson family Avatar

Note: The Simpsons (Simpson family) is a fictional family in the American animated sitcom "The Simpsons".

The technology used

There are similarities to the techniques used by artist sketches. First, each person's face is disassembled into different shapes, and then gradually pieced together into a portrait.

Here is the Simpsons character model after disassembly:


According to the above model, the CSS div blocks of hair, head, eyes, nose, ears, mouth, chin and neck are constructed in sequence, and then the absolute position is used to spell together.

Bart's "head" model CSS code for example follows:

Position:absolute;top:20px;left:33px;width:9px;height:7px;background: #fbd800; border-top:1px solid #110b00; border-left:1px solid #110b00;-webkit-transform:rotate (25deg) skew (23deg, 16deg),-ms-transform:rotate (25deg) Skew ( 23deg, 16deg), Transform:rotate (25deg) skew (23deg, 16deg),-webkit-border-radius:2px 0 0 0;-moz-border-radius:2px 0 0 0;b order-radius:2px 0 0 0;

For many other CSS code, please visit the Sample code page .


by Iefreer

Pure CSS Implementation of cool cartoon portrait and Blink Effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.