Pratham Profile picture
11 Jun, 8 tweets, 3 min read
You can create your text portrait using CSS in 5 simple steps. Let's see how

πŸ§΅πŸ‘‡πŸ»
Step 1: Setting up the HTML

Create a document with a lot of lorem ipsum text so that your webpage is covered entirely by the text
Step2: Set dark background-color

A dark background will make your portrait more appealing
Step3: Set the background image

This step is divide into 3 further steps

- Set background image
- Add background no-repeat for just one image
- Position your image in the center
Step4: Clip text

As you can see in the above step our text has disappeared. We need to clip our text so that background is painted with the foreground text.

p {
-webkit-background-clip: text;
}
Step5: Final touch

Reduce the line spacing a little bit and that's all πŸ˜€
Check out the full source code here

codepen.io/prathkum/pen/x…?
End of this thread. If you like it, give it a retweet it means a lot to me πŸ’–

β€’ β€’ β€’

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

13 Jun
We can create simple photoshop using CSS. Let's see how πŸ˜„

πŸ§΅πŸ‘‡πŸ»
CSS filter functions provide us the flexibility of adding graphical effects to an element. They are

- blur()
- brightness()
- contrast()
- drop-shadow()
- hue-rotate()
- grayscale()
- invert()
- opacity()
- sepia()
- saturate()
1. blur

As the term suggests, blur function simply blurs your input image. The blur that is being applied to image is known and Gaussian blur ImageImage
Read 14 tweets
12 Jun
React Hooks are so powerful and especially some additional hooks.

Do you know there is an alternative to useState called useReducer hook? It is used to manage more complex states.

Let's look into detail πŸ§΅πŸ‘‡πŸ» Image
Usually, the useState hook is used to tackle states in React where you can pass the initial state and React preserves state for you between re-renders

What if you need to manage more complex states? Here useReducers comes into play
Similar to useState, the useReducer hook also returns a pair of values. Let's see what these two things are Image
Read 17 tweets
11 Jun
5 beginner friendly websites to learn JavaScript

πŸ§΅πŸ‘‡πŸ»
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
10 Jun
Introduction to CSS 🎨

CSS is an amazing and unique language that servers a great purpose. We can make our website visually good using CSS. It describes the presentation of web pages, including typography, layouts, color, etc

Let's break it down πŸ§΅πŸ‘‡πŸ»
CSS is a stylesheet language that serves one great purpose. It makes your website visually good

Consider this amazon website with and without CSS πŸ‘‡πŸ»
I hope you got it why CSS is important for web development. Alright let's move onto actually discussion that how you start learning it
Read 23 tweets
9 Jun
6 GitHub repositories that can help you in writing better CSS code

🧡 πŸ‘‡πŸ»
1. Awesome CSS Learning

- A tiny list limited to the best CSS Learning Resources

πŸ”— github.com/micromata/awes…
2. Spin Kit

- A collection of loading indicators animated with CSS

πŸ”— github.com/tobiasahlin/Sp…
Read 7 tweets
8 Jun
10 great handmade CSS and JavaScript cheat sheets you won't find anywhere

πŸ§΅πŸ‘‡
1. CSS Box Model πŸ“¦
2. Types of Border Style πŸ”²
Read 12 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!

:(