3

21 Mind-Blowing Web Features You Probably Haven't Heard Of

 1 year ago
source link: https://dev.to/johnrushx/21-mind-blowing-web-features-you-probably-havent-heard-of-2b77
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

If you're a web developer, buckle up because the web platform has landed some game-changing new features that will alter the way we build websites forever. Let's dive into these incredible new additions!

1. Native HTML Dialog

Gone are the days of building modals from scratch with full screen backdrops and hacked together JavaScript to show and hide elements. Now we have native HTML dialogs, fully supported on all major browsers. Just reference its ID and run showModal() method.

unknown tweet media content
Play butt
John Rush profile image
John Rush
twitter logo
1/21
Native support for modal windows.
<dialog id="d">
...
<button onclick="d.showModal()">Open Dialog</button>
16:27 PM - 01 Jun 2023

2. Popovers Are Coming

Native popovers provide attributes like popoverTarget and popover, allowing you to show and hide content without any JavaScript or tricky CSS that uses focus within.

unknown tweet media content
Play butt
John Rush profile image
John Rush
twitter logo
2/21
Native support for Popovers
<button popovertarget="poppinoff">Open</button>

<div id="poppinoff" popover>
<p>The feature be poppin</p>
</div>
16:27 PM - 01 Jun 2023

3. Web GPU: A Game Changer for Graphics & Games

Web GPU is essentially WebGL's successor, enabling browsers and web apps to take advantage of GPUs for faster graphics rendering in libraries like Babylon.js, Three.js, as well as TensorFlow.js for machine learning models training.

unknown tweet media content
Play butt
John Rush profile image
John Rush
twitter logo
3/21
Browser support for WebGPU
16:28 PM - 01 Jun 2023

4. Container Queries: Responsive Websites Made Easier

With container queries, developers can now apply different styles based on nearest ancestor containers instead of just viewport size - making responsive design more intuitive than ever before.

unknown tweet media content
Play butt
John Rush profile image
John Rush
twitter logo
4/21
Container queries. Finally we can get rid of javascript for this.
`@container` (min-width: 700px;)
16:28 PM - 01 Jun 2023

5.Color Mix: Mixing Colors Natively in CSS

The color mix function allows mixing colors natively in CSS by specifying two colors arguments along with desired color space creating interesting gradient effects across multiple elements.

unknown tweet media content
Play butt
John Rush profile image
John Rush
twitter logo
5/21
Color-mix in CSS.
Really useful for gradients and shades
16:28 PM - 01 Jun 2023

6.CSS Nesting

CSS nesting improves code readability by allowing styles to be nested inside parent selectors just like Kangaroos in pouches - no more duplicated class names!

unknown tweet media content
Play butt
John Rush profile image
John Rush
twitter logo
6/21
CSS nesting.
bye bye SASS and all the others.
Pure css can do it.
Maybe it can win back over Tailwind CSS now?
16:28 PM - 01 Jun 2023

7.Experience Chromatic Fonts

Color fonts (or chromatic fonts) let you customize entire color palettes using multiple colors per glyph offering endless possibilities such as gradients and even 3D effects.

unknown tweet media content
Play butt
John Rush profile image
John Rush
twitter logo
7/21
Color Fonts
16:28 PM - 01 Jun 2023

8.Performance Boost with Web Vitals Plugin

The new Web Vitals plugin for Chrome console logs performance metrics pinpointing issues like layout shifts and problematic elements to optimize your website.

9.JavaScript Features: Array At & Deep Copy

Array at method simplifies getting array items using negative indices (e.g., -1 for last item). The structured clone function enables deep copying of objects, making transferring data between them much easier.

10. More Awesome Web Features

  • Transform Stream Interface: Pipe one fetch call into another
  • Import Maps: Declare multiple JavaScript modules at once
  • CSS Individual Transform Properties: Modify scale, translation, and rotation easily
  • Trigonometric Functions in CSS: Sine, cosine, tangent for circular designs
  • CSS Initial Letter Property: Magazine-style first letters in articles
  • Focus Visible & Alert Property: Improved accessibility options
  • View Transitions API & Animation Timeline (experimental): Better animations between web pages based on scroll position

Congratulations! You've just learned about 21 new features on the web. If you knew every single one of them already, go ahead and redeem your free "web development job" certificate during your next interview! Thanks for reading and stay tuned for more exciting updates.

*full list

John Rush profile image
John Rush
twitter logo
Rememer this day: June 1, 2023.

The web's been reinvented with 21 new features, as @fireship_dev says.

I've spent 5400 seconds to break it down into individual video posts for each feature,

to let you boost your daily productivity by a whopping 100 milliseconds! 😉
16:27 PM - 01 Jun 2023

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK