CSS tips you won't see in most tutorials.

🧡
1. Smooth scrolling

Smooth scrolling with zero JavaScript, with just one line of CSS. html {   scroll-behavior: smooth; }
2. When you work with transparent images you can use the `drop-shadow()` filter function to create a shadow on the image's content, instead of `box-shadow` property which creates a rectangular shadow behind an element's entire box:

filter: drop-shadow(2px 4px 8px #585858); Two images shown. One with rectangular shadow around whole i
3. Typing Effect

Did you know that you can create a typing effect with zero JavaScript?

Check this demo to see it in action, and to check the code:
codepen.io/denic/pen/GRoO…
4. Center anything

Easily center anything, horizontally and vertically, with 3 lines of CSS: .center {   display: flex;   align-items: center;   justify-
5. Cursors

Did you know that you can use your own image, or even emoji as a cursor? .my-cursor {   cursor: url('path-to-image.png'), auto; }
6. Truncate text

Truncate text with plain CSS. alt=".truncate {   white-space: nowrap;   overflow: hid
7. `caret-color`

You can change the color of the text input cursor. input {   caret-color: red; }
8. CSS Scroll Snap

You can use the CSS Scroll Snap feature to create well-controlled scroll experiences:
9. The `::selection` CSS pseudo-element

The `::selection` CSS pseudo-element applies styles to the part of a document that has been highlighted by the user (such as clicking and dragging the mouse across text).
10. Anything resizable

Did you know that you can make any element resizable, just like `<textarea>`? .resize {   resize: both; }
11. CSS modals

You can use the `:target` pseudo-class to create modals with zero JavaScript. .modal {   visibility: hidden; }
12. Dynamic Tooltips

Create dynamic CSS-only tooltips, using the `attr()` CSS function. // HTML <span class="tooltip" data-tooltip="T
If you liked this thread, maybe you'd love to bookmark it as a post.

P.S. You can find a few more tips there.

markodenic.com/css-tips/
If you're learning CSS, be sure to follow me and never miss tips like this.

β€’ β€’ β€’

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

Keep Current with Marko ⚑ Denic

Marko ⚑ Denic 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 @denicmarko

29 Mar
Are you're learning JavaScript?

I'm sure you've heard a million times to learn the fundamentals first.

But what are they? And where to learn them?

I made a list of JavaScript fundamentals and free resources for learning them.

🧡
2. Data Types

Understanding data types, by @lisaironcutter.

digitalocean.com/community/tuto…
Read 11 tweets
28 Mar
Websites to find a remote job:

πŸ“Œ flexjobs. com
πŸ“Œ remote. co
πŸ“Œ justremote. co
πŸ“Œ weworkremotely. com
πŸ“Œ remoteok. io
πŸ“Œ jobspresso. co
πŸ“Œ europeremotely. com
πŸ“Œ wfh. io
πŸ“Œ dailyremote. com
πŸ“Œ angel. co
πŸ“Œ jsremotely. com
πŸ“Œ remoteleaf. com
πŸ“Œ remoteleads. io
πŸ“Œ hired. com
It looks like @gitlab has a lot of open positions.

Read 5 tweets
24 Mar
Websites to find code snippets.

🧡
1. CSS Tricks Snippets

~ HTML
~ CSS
~ Sass
~ SVG
~ htaccess
~ JavaScript
~ jQuery
~ WordPress
~ PHP

Link: css-tricks.com/snippets/
2. 30 Seconds Of Code

~ JavaScript
~ CSS
~ Python
~ React

Link: 30secondsofcode.org
Read 6 tweets
22 Mar
You can use CSS generators to avoid some time-consuming, routine tasks.

I made a collection of the best CSS generators for you.

🧡
1. Neumorphism/Soft UI generator

CSS code generator that will help with colors, gradients, and shadows to adopt this new design trend or discover its possibilities.

Link: neumorphism.io
2. Smooth Shadow generator

Built by @funkensturm.

Link: shadows.brumm.af
Read 11 tweets
20 Mar
Do you want to stand out in a job interview? Learn Git.

Git is an essential tool for developers. Every team is using some kind of version control system and Git is the most commonly used.

I collected for you a few tools to help you learn Git.

🧡
1. Git and Git-flow cheat sheet.

Link: github.com/arslanbilal/gi… The link preview.
2. Learn Git branching

An interactive Git visualization tool to educate and challenge!

Link: learngitbranching.js.org Screenshot of the provided link.
Read 6 tweets
18 Mar
What's harder for you to learn? JavaScript or CSS?
This is a common issue when learning CSS.

Using platforms like frontendmentor.io can help a lot.

If you're a complete beginner, I'd suggest you start with a FreeCodeCamp curriculum.

freecodecamp.org
Read 4 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!