Pratham Profile picture
13 Jun, 14 tweets, 6 min read
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
2. brightness

Brightness function adds some visual perception in the input image, making it appear brighter or darker
3. contrast()

You can adjust the contrast of the input image. Contrast is like the difference in brightness between objects or regions
4. drop-shadow()

box-shadow applies the shadow around rectangular box whereas drop-shadow automatically fits around the shape of an element
5. grayscale()

The grayscale() CSS function converts the input image to grayscale
6. hue-rotate()

Applies a hue rotation on the image. The value defines the number of degrees around the color circle the image samples will be adjusted
7. invert()

invert function simply invert the color of the element
8. opacity()

Opacity function applies transparency to the samples in the input image
9. saturate()

The CSS saturate function helps to reduce or increase the saturation level of the input image.
10. sepia()

The sepia() CSS function converts the input image to sepia, giving it a warmer, more yellow/brown appearance.
I created this animation using `hue-rotate()` function only.

Check it out: codepen.io/prathkum/pen/K…
That's pretty much it for this thread. Hope you like 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

15 Jun
Some HTML and CSS tips that will blow your mind for sure

πŸ§΅πŸ‘‡πŸ»
2. Create Grammarly using one line of HTML

Read 6 tweets
15 Jun
My content usually revolves around CSS but I have a plethora of fully-fledged threads on React as well

Take a look πŸ§΅πŸ‘‡πŸ»
Read 9 tweets
14 Jun
I randomly started Twitter but built ~100K audience in about 12 months

Here's how you can also do it πŸ§΅πŸ‘‡πŸ»
πŸ“Œ 1. Make your place in the well-established tech community

This sounds tough but actually, it is not. You just need to put content but try to deliver the content from the one technology.

For example, When I started, I posted only CSS arts nothing else
Why?

Obviously, you can put diverse content as well but we need to tell the community that, hey, I am X and I am good at Y technology.

This will bring quick light to your profile.
Read 20 tweets
13 Jun
5 Great GitHub repositories for web developers

πŸ§΅πŸ‘‡πŸ»
1. HTML best practice

For writing maintainable and scalable HTML documents

πŸ”— github.com/hail2u/html-be…
2. Awesome CSS Learning

A tiny list limited to the best CSS Learning Resources

πŸ”— github.com/micromata/awes…
Read 6 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 πŸ§΅πŸ‘‡πŸ»
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
Read 17 tweets
11 Jun
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
Read 8 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!

:(