DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Languages
  4. South Park in CSS3! Or, Interpreting cartman.css

South Park in CSS3! Or, Interpreting cartman.css

John Esposito user avatar by
John Esposito
·
Dec. 05, 11 · Interview
Like (0)
Save
Tweet
Share
8.87K Views

Join the DZone community and get the full member experience.

Join For Free

Yes, someone did it; and Wagon Bertrand is his (somewhat awesome) name.

In nice, responsbile CSS3 too, with plenty of accomodations for both WebKit and Mozilla.

Here's what it looks like:

Absolutely perfect, as far as I can tell. Not as fancy as the real animation, maybe, which uses Maya and considerable processing power. But in this picture you can't tell. Plus the characters make faces on mouseover.

...

Okay, who could resist peeking inside a file named cartman.css? especially when the code is basically many, many declarations like this:

#cartmanPiedGauche {
	background-color:#0f0f0f;  margin: 0px;  padding: 0px;  height: 6px;  width: 124px;  position: absolute;  visibility: visible;  z-index: 2;  left: 35px;  bottom: 0px;
	-moz-border-top-left-radius: 84px 6px;  -moz-border-top-right-radius: 40px 6px;  -moz-border-bottom-right-radius: 0px 0px;  -moz-border-bottom-left-radius: 0px 0px;
	-webkit-border-top-left-radius: 84px 6px;  -webkit-top-right-radius: 40px 6px;  -webkit-bottom-right-radius: 0px 0px;  -webkit-bottom-left-radius: 0px 0px;
	border-top-left-radius: 84px 8px;  border-top-right-radius: 40px 8px;  border-bottom-right-radius: 0px 0px;  border-bottom-left-radius: 0px 0px;
	-moz-box-shadow: 0px 0px 1px  #0f0f0f;  -webkit-box-shadow: 0px 0px 1px #0f0f0f;  box-shadow: 0px 0px 1px #0f0f0f;
}

(To pre-empt non-French-speakers' searches: 'PiedGauche' means 'LeftFoot', says Wiktionary.)

More intriguingly, did you know that Cartman's legs angle outward at exactly 21 degrees?

#cartmanJambesA{
	background-color: #613816;  margin: 0px;  padding: 0px;  height: 44px;  width: 16px;  position: absolute;  visibility: visible;  z-index: 1;  left: 8px;  bottom: 1px;
	-moz-box-shadow: 0px 0px 1px  #0f0f0f;  -webkit-box-shadow: 0px 0px 1px #0f0f0f;  box-shadow: 0px 0px 1px #0f0f0f;
	-moz-transform: rotate(-21deg);  -webkit-transform: rotate(-21deg);  -o-transform:rotate(-21deg);  -ms-transform:rotate(-21deg);
}

For the bulge effect, I suppose. Note that the other characters' jambes do not angle outward at 21 degrees.

Head over to Wagon's interactive South Park graphic for full effect. Or check out his South Park spotlight page, on which he rightly declares his achievement a 'gros tour de force!'

 

 

 

CSS

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Authenticate With OpenID Connect and Apache APISIX
  • gRPC on the Client Side
  • Important Data Structures and Algorithms for Data Engineers
  • [DZone Survey] Share Your Expertise and Take our 2023 Web, Mobile, and Low-Code Apps Survey

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: