Pratham Profile picture
23 May, 14 tweets, 7 min read
We can create cartoons using CSS as well πŸ˜‰

Let's decode in this thread how we can create Ferb using few simple CSS steps. Let's go

πŸ§΅πŸ‘‡πŸ»
STEP 1: Create a Face of rectangular shape

- Create a rectangle and rotate it a little bit
- Give it a solid border without border-bottom
- Position it
STEP 2: Create Lips

- Make a small square
- Add bottom and left border
- Skew it so that it seems like a lip
- Add little bit of bottom-left radius to give it a more realistic look
STEP 3: Create a Ear

- Create a circle
- Give it a solid right and bottom border of color same as face
- Rotate it a bit in order to match the boundary of ear to face
STEP 4: Create a Nose

- Make a square
- Apply solid border of same color as of face
- border-right: none - in order to match it with the face boundary
- Position and rotate it so that it sync with the face
We need to extend the border of nose so that it looks like the nose is coming out of the face.

Again, we can do that using pseudo-elements

- Just create a small rectangle with same border and adjust it to the top border of nose
STEP 5: Create an eye

- For eye we need an oval shape (height > width)
- Apply black border with white background color
- Position it behind the nose
- Add a small black oval inside the eye

* You can create black oval using pseudo-elements ::before
- Add a even small white reflection in black oval(pupil) to give it a more realistic look

* You can create black oval using pseudo-elements ::after
STEP 6: Create second Eye

- Create second eye using same technique and code
- Just position it differently
STEP 7. Create hair spike

This is the easiest part in my opinions because all you need to make are just random spikes.

What I have done here is just created a border-top 20px and rotate it in order to give it a spike look.
STEP 8. Create hairs

Repeat step 7 and create multiple spikes so that they look like hair
Done 🀩
Wasn't it easy and fun. You should try it as well. It wil help you improving your CSS skills
You can access the whole source code here:

codepen.io/prathkum/pen/a…

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Pratham

Pratham Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Prathkum

24 May
A long list of all CSS tips and tricks I shared here πŸ§΅πŸ‘‡πŸ»
2. Change marker styling Image
Read 24 tweets
23 May
Here is a curated list of threads in chronological order that can help you learn the entire CSS 🎨

πŸ§΅πŸ‘‡πŸ»
1. Kickstart your CSS journey with this thread. It will give you a quick overview ✏️

2. First and foremost, learn about box-model, it will cover height, width, margin, padding and border πŸ“«

Read 15 tweets
23 May
Web Layout πŸ–Ό

Structuring your website is essential as it provides better navigation and visualization of the content available on the site. Let's talk a little more about it and learn how we can create a proper layout

πŸ§΅πŸ‘‡πŸ»
Web layout aims for presenting imformation in a logical manner and to make the important elements stand out.

A well designed layout can catch more traffic on your website and make your content easy to understand
πŸ“Œ Design vs Layout?

Web layout is closely related to designing part. But we can say that web designing is much more than the layout only. It covers images, text, color scheme, typography and layout

On the other hand, Layout is all about arrangement of element on the webpage
Read 22 tweets
23 May
5 great icons websites for every web developer and designer ⏺️

πŸ§΅πŸ‘‡
1️⃣ Icons 8

- Icons8 is just more than icons. You can download illustrations, vector images, music and much more

πŸ–‡οΈ icons8.com
2️⃣ Icon Monstr

- Black and white themed minimal icons which looks super great. You can also cuatomize the thickness

πŸ–‡οΈ iconmonstr.com
Read 6 tweets
22 May
Introduction to JavaScript β˜•

JavaScript is probably one of the most commonly used programming languages ​​nowadays. It has a wide range of applications in almost all technologies

πŸ§΅πŸ‘‡πŸ»
If you're planning to start with coding then JavaScript would not be a bad choice. In fact, it is the best choice. Why?

1. You can use it everywhere
2. A lot of jobs opportunities
3. Easy to learn
Lets talk about the use cases of JavaScript in bit detail

Web development is probably the largest field in IT industry. People all around the globe using web services in some context which makes this field even vast and eventually opens doors for beginners....
Read 22 tweets
21 May
I have created countless number of Twitter headers using CSS

Here are my top 6 creations πŸ§΅πŸ‘‡πŸ»
1️⃣ A programmer desk

πŸ”— codepen.io/prathkum/pen/w…
2️⃣ Rocket producing fumes

πŸ”— codepen.io/prathkum/pen/V…
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(