This content originally appeared on DEV Community and was authored by John Rush
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.
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.
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.
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.
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.
5/21
Color-mix in CSS.
Really useful for gradients and shades16: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!
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.
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
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
This content originally appeared on DEV Community and was authored by John Rush
John Rush | Sciencx (2023-06-03T22:43:50+00:00) 21 Mind-Blowing Web Features You Probably Haven’t Heard Of. Retrieved from https://www.scien.cx/2023/06/03/21-mind-blowing-web-features-you-probably-havent-heard-of/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.