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!
A closure is the combination of functions where one is inside the other. Such combination creates lexical scope where the inner function has access to information from an outer function.
Strict mode is activated by writing βuse strictβ at the beginning of the file.
Strict mode changes JS by:
- Eliminating some JS errors by changing them to throw errors.
- Fixing mistakes that make it difficult for JS engines to perform optimizations.
5 JavaScript Interview Questions and Answers π€π€π€
Part 1 (1-5 from 50 questions)
π Follow Thread π§΅
1. What is a JavaScript?
JavaScript is a multi-paradigm and high-level programming language.
Itβs extremely popular in the Web Development world and especially on the client-side part (Front-end). However, it also can be used in other software development fields.
2. What is the original name of JavaScript?
The early version of JavaScript was called Mocha. Just after a Mocha prototype was introduced, the name was changed to LiveScript. Finally, it was named JavaScript because of the popularity of Java.
10 JavaScript Repositories every Web Developer must visit. π€«π€«π€«
π Follow Thread π§΅
1. JavaScript Questions
A huge list of multiple-choice JavaScript questions! From basic to advanced: test how well you know JavaScript, refresh your knowledge a bit, or prepare for your coding interview! github.com/lydiahallie/jaβ¦
2. Airbnb JavaScript Style Guide
All best practices and proper ways of writing JavaScript code in one Repository.
It also contains explanations and references, to assist you in writing more reliable, clean, and error-free code. github.com/airbnb/javascrβ¦
A web-based design tool to generate unique SVG design assets for websites, social media, blog posts, pitch decks, and more! Choose a visual from our growing list of generators, customize, randomize, and export it as an SVG or a PNG.
Doodle Ipsum is a free illustration tool for devs powered by Blush! Inspired by the classic Lorem Ipsum, it automagically generates placeholder illustrations with a simple line of code.