This media is not supported in your browser
VIEW IN TELEGRAM
Light/Dark Toggle With Morphing Icon
Theme switcher. Implemented using CSS.
⤷Get code
💎 @Htmlcss_channels | #css #JavaScript #HTML
Theme switcher. Implemented using CSS.
⤷Get code
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2🔥1🙏1
This media is not supported in your browser
VIEW IN TELEGRAM
You can make the UI cleaner by reducing or removing scrollbars using the scrollbar-width property
Example of a thin scrollbar:
Example of a hidden scrollbar (the area remains scrollable):
Suitable for sidebars, data tables, chat panels, dashboards with lots of scrolls, carousels, touch interfaces.
As a result, the scroll works, but the UI looks neater
💎 @Htmlcss_channels | #css #JavaScript #HTML
Example of a thin scrollbar:
ul {
scrollbar-width: thin;
}Example of a hidden scrollbar (the area remains scrollable):
.cards-container {
scrollbar-width: none;
}Suitable for sidebars, data tables, chat panels, dashboards with lots of scrolls, carousels, touch interfaces.
As a result, the scroll works, but the UI looks neater
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1👍1🙏1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4🙏1
This media is not supported in your browser
VIEW IN TELEGRAM
Making smooth scrolling to elements using the scrollIntoView method
JS:
💎 @Htmlcss_channels | #css #JavaScript #HTML
JS:
const links = document.querySelectorAll('.link');
links.forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();
let id = item.getAttribute('href');
let formattierID = id.substring(1);
let section = document.getElementById(formattierID);
section.scrollIntoView({
behavior: 'smooth',
});
});
});Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
This media is not supported in your browser
VIEW IN TELEGRAM
Shoe Swap
The logic for switching slides is implemented in JS. Animated in SCSS.
Code
💎 @Htmlcss_channels | #css #JavaScript #HTML
The logic for switching slides is implemented in JS. Animated in SCSS.
Code
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
ابزارهای موجود در این مقاله به سادهسازی و سرعت بخشیدن به فرآیند توسعه و آزمایش front-end کمک میکنند.
- از استخراج سبک های CSS از وب سایت ها گرفته تا تجزیه و تحلیل و بهینه سازی SEO.
https://proglib.io/p/15-superpoleznyh-plaginov-chrome-v-pomoshch-frontenderu-2024-09-20
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1