Let's create some easy and complex shapes using pure CSS 🎨

A Thread 🧡
1. Circle

- Pretty simple, we just need to make a square and apply the border-radius 50% in order to give it a circular shape
2. Semi-circle

- Create a rectangle
- Apply border radius top left and top right same as height of the rectangle
3. Triangle

- Creating a triangle is little bit tricky
- Set height and width as zero
- To make this, we draw a solid border and make the side border transparent
4. Trapezium

- Same as triangle but in this case we need to set some width
5. Parallelogram

- Create a rectangle
- Apply skew in order to tilt it
6. Hexagon

- Creating hexagon is very easy
- We need to make two trapeziums of same size but make sure that other trapezium should be upside down
- Align them perfectly
7. Leaf

- Create a square
- Apply larger border-radius at top-left and bottom-right corner
8. Drop

- Create a square
- Apply 50% border-radius to all the sides except one side
- Rotate in such a manner so that tip comes to top
9. Heart

- Create a rectangle and apply circular border at top
- Rotate it 45deg
- Create another same rectangle with circular border and rotate in 45deg in other direction
- Align both of them
10. Star

- Create two triangle upside down
- Align second triangle in the middle of the first one
11. Diamond

- Combination of Trapezium and triangle
12. Moon

- Transparent background
- Apply box shadow
13. Cross

- Create two rectangles
- Place them over each other vetically and horizontally
- Rotate 45deg
14. Egg

- Using advance border-radius technique
I hope you will find it helpful, if so, share it❀️

Peace out πŸ˜‰

β€’ β€’ β€’

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

23 Mar
JavaScript is the most important language for web development. Let's see how you can start learning it

A THREAD🧡
In this thread, we will cover some quick points so that you will be able make functional websites within 10 - 15 days.

However JavaScript is much more than this. But this thread will give you a quick overview

{ 2 / 18 }
First things first, whenever I'm up to learning new technology or language, I always start with a crash course. By doing so I get a quick overview of things in almost no time

{ 3 / 18 }
Read 18 tweets
22 Mar
Beginner's guide to the most widely used hooks of React

The useState and useEffect hook

A long threadπŸ§΅πŸ‘‡πŸ»
Start with the useState hook

- You will use it almost 100% in your component. The useState hook is not so tough to understand but there is some hiddent concepts, Let's start πŸ‘‡πŸ»

{ 2 / 27 }
Working with React hooks, first thing you need to do is to import the particular hook

It's quite easyπŸ‘‡

πŸ“Œ import { useState } from "react";

{ 3 / 27 }
Read 27 tweets
22 Mar
These 10 web development code snippet websites can save you a lot of time

A thread 🧡
1️⃣ Code My UI

- Handpicked collection of Web Design & UI Inspiration with Code Snippets.

πŸ”— codemyui.com
2️⃣ Creatives Feed

- CreativesFeed works to share the best free code snippets and web development resources online.

πŸ”— creativesfeed.com/topics/code-sn… Image
Read 11 tweets
21 Mar
These websites will help you improve your JavaScript knowledge

πŸ§΅πŸ‘‡πŸ»
1️⃣ JavaScript Tutorial

- This JavaScript Tutorial helps you learn JavaScript programming language from scratch quickly and effectively.

πŸ”— javascripttutorial.net
2️⃣ Learn JavaScript

- Interactive JavaScript tutorial.

πŸ”— learn-js.org/en/
Read 6 tweets
19 Mar
If you are a developer then these GitHub repositories or websites will boost your knowledge to the next level

A Thread 🧡
1️⃣ JavaScript

- A kind of eBook in the form of readme. Covers from beginners to intermediate concepts of JavaScript

πŸ”— github.com/GitbookIO/java… Image
2️⃣ Python

- A huge list of python projects, snippets, example and almost everything related to Python which helps you understand it in detail

πŸ”— github.com/geekcomputers/…
Read 6 tweets
18 Mar
Do not write CSS code, use these free generators instead that can help you immensely

A Thread 🧡
1️⃣ Stripes generator

- Pure CSS Stripes Generator that you can use for backgrounds.

πŸ”— stripesgenerator.com
2️⃣ Gradient generator

- As a free css gradient generator tool, this website lets you create a colorful gradient background for your website, blog, or social media profile

πŸ”— cssgradient.io
Read 9 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!