A cool cartoon portrait implemented by pure CSS, an example of combining art with programming

Source: Internet
Author: User

Product design technology trends

A major technical trend in product design and development is not only responsive,

We also try our best to use CSS/HTML5 technology to replace images, so that we can achieve good design scalability and page access performance.

CSS cartoon instance

The following is a very cool cartoon avatar designed and developed by a WEB engineer in the UK. It is implemented with pure CSS and can be easily switched to the skin color :)


Demonstration page access link,Family portraits

Note: the Simpson family is a fictional family in the American animated scene comedy "the Simpson family.

Technologies used

Similar to the techniques used by artist sketch, the face of each character is first split into different shapes, and then gradually merged into portraits. The following is the split-up Simpson character model:


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 assembled with absolute positions,

The "Header" of Bart demonstrates the CSS Code as 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; border-radius: 2px 0 0 0;

For more CSS code, visit the sample code page.


By iefreer

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.