#pseudo-elements

[ follow ]
#css
Web development
fromFrontendmasters
2 months ago

How to Add and Remove Items From a Native CSS Carousel (...with CSS)

CSS Overflow Module Level 5 provides scroll buttons and scroll markers as pseudo-elements to navigate overflow and build interactive carousels, supported in Chrome 142+.
fromFrontendmasters
3 months ago

CSS Counters in Action

Let's say we wanted a React component that renders a few lines of text, where the number of lines is received as a prop. But we also want to display line numbers next to each line, and we want to use CSS to do so. That last assumption might seem silly, but bear with me; we'll look at a real-world use case at the end.
Web development
[ Load more ]