9 CSS Tricks for you to create 66.6% more elegant styles! 😍😍😍

πŸ‘‡ Follow Thread 🧡
1. Use inset property instead of using top, bottom, left, right. It is a really convenient shortcut! 😌
2. Easily add commas for each item in the list with :not(:last-child)::after! 😊
3. Easily change text selection color with ::selection!
4. Use aspect-ratio for adjusting the ratio of elements automatically.

So you can add only width or height and CSS will calculate the ratio internally!
5. Use clamp() allows you to set a font-size, width, height, border, etc that grows with the size of the viewport, but doesn't go below a minimum value or above a maximum!
6. Use background-blend-mode with background-image property for creating an amazing mix of colors and images!
7. Use :first-letter to be able to style only the first letter in a paragraph!

Book-style with only one property!
8. The ::selection allows you to change styles for selected text on your website!
9. By using mask-image with background-image you can add very interesting shapes for your pictures with ease!
That's all folks! πŸ”₯🧯

If you found this thread useful, please consider following @eugZolotarenko and retweeting the first tweet. πŸ“’
Extra one!

Text containers not always need to be rectangular!

Just use shape-outside for your image to create different unusual shapes for texts!

β€’ β€’ β€’

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

Keep Current with Eugene πŸ’› Zolotarenko

Eugene πŸ’› Zolotarenko 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 @eugZolotarenko

23 Nov
⚑⚑⚑ 10 React and Next.js Starter kits for creating projects blazingly fast! ⚑⚑⚑

πŸ‘‡ Follow Thread 🧡
1. nextjs-subscription-payments

The all-in-one starter kit for high-performance SaaS applications.

github.com/vercel/nextjs-…
2. react-starter-kit

The web's most popular front-end template for building web applications with React, Relay, and GraphQL.

github.com/kriasoft/react…
Read 13 tweets
22 Nov
7 JavaScript Array methods which you 104% must know! 🀨🀨🀨

πŸ‘‡ Follow Thread 🧡
1. array.map()

Using map(), we can iterate through all items in an array, taking actions on each one. The result of this operation is provided as a new array. Image
2. array.filter()

Using filter(), we can iterate through all items in an array and filter them depending on conditions inside a method. The result of this operation is provided as a new array. Image
Read 10 tweets
19 Nov
14 Best Practices for you to write 69% Higher Quality JavaScript code. πŸ€“ πŸ€“ πŸ€“

πŸ‘‡ Follow Thread 🧡
1. Reduce using global variables!

Global variables can be handy and easy to write, but don't overuse them. It can make your code hard to maintain and read.

However, consider using objects where you can group all your variables!
2. Use strict equality operators (===, !==) instead of non-strict (==, !=)

By using == or != operators, you don't check the types of values you compare. So, non-strict equality operators can easily lead to a bug in your code!
Read 17 tweets
18 Nov
Random Websites which just Blow your mind! 🀯🀯🀯

πŸ‘‡ Follow Thread 🧡
1. Is My Computer ON

This amazing website helps you understand if your computer is ON or OFF.

I use it on a daily basis just as a simple quick helper!

ismycomputeron.com
2. The world's worst website ever

When I don't like a website that I built, I often just visit this masterpiece to raise self-esteem.

theworldsworstwebsiteever.com
Read 9 tweets
17 Nov
11 JavaScript Tricks for you to write 57% more elegant code! 😈😈😈

πŸ‘‡ Follow Thread 🧡
1. Easily swap variables by using destructuring.
2. Transform number to string or string to number faster with +
Read 14 tweets
16 Nov
πŸ“’πŸ“’πŸ“’ Top Github Repositories for React Developers! πŸ“’πŸ“’πŸ“’

πŸ‘‡ Follow Thread 🧡
1. React Developer Roadmap

Roadmap to becoming a React developer!

The road map will guide you if you are confused about what to learn next, rather than encouraging you to pick what is hip and trendy.

github.com/adam-golab/rea…
2. 30 Seconds Of React

Short React code snippets for all your development needs

github.com/30-seconds/30-…
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

Thank you for your support!

Follow Us on Twitter!

:(