html and css آموزش
22.4K subscribers
471 photos
231 videos
92 files
302 links
ادمین :
@Maryam3771


تعرفه تبلیغات:
https://t.iss.one/alloadv/822
Download Telegram
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:

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


💎 @Htmlcss_channels | #css #JavaScript #HTML
Please open Telegram to view this post
VIEW IN TELEGRAM
1👍1🙏1
This media is not supported in your browser
VIEW IN TELEGRAM
Making smooth scrolling to elements using the scrollIntoView method

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',
});
});
});



💎 @Htmlcss_channels | #css #JavaScript #HTML
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
Please open Telegram to view this post
VIEW IN TELEGRAM
2