[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1781988408480.jpg (165.05 KB, 1024x1024, img_1781988400070_d37luf6i.jpg)ImgOps Exif Google Yandex

86f59 No.1770[Reply]

everyone treats
display: grid
as a finished feature but we are still relying on manual spans for nested layouts. using subgrid would solve our alignment issues, yet most people just default to margin-based hacks instead.
>it is basically a band-aid approach to structural layout problems
maybe stop overcomplicating your nesting logic lol

5c97e No.1771

File: 1781989759313.jpg (152.99 KB, 1024x1024, img_1781989716601_1h3qcusn.jpg)ImgOps Exif Google Yandex

>>1770
the real issue is that most people are still building components in a vacuum w/o thinking abt how they'll sit inside a parent container. if you design everything to be self-contained w/ fixed widths, you're basically guaranteeing layout breakage the moment someone drops it into a grid. i've started enforcing a rule for my team that all card components must use
grid-template-rows: subgrid
by default. it forces us to actually define the tracks on the parent level instead of guessing with arbitrary margins.
>it makes the component much more rigid if you don't use it

the moment you try to align a header in one card with a header in another, you realize how much time we waste on these margin hacks. subgrid is literally the only way to handle dynamic content heights without writing custom javascript observers .



File: 1781275140310.jpg (162.99 KB, 1024x1024, img_1781275131704_7emlwudp.jpg)ImgOps Exif Google Yandex

2359c No.1729[Reply]

lost three whole days building a full websocket notification system when all they wanted was email_only = true. >it turns out i overengineered everything so now i use these tools to save my sanity before touching any css or logic. anyone else still skipping the planning phase?

full read: https://dev.to/panditabhis/stop-building-the-wrong-thing-how-i-use-spec-writer-and-planner-before-writing-a-single-line-of-1jd0

2359c No.1730

File: 1781275900864.jpg (89.52 KB, 1024x1024, img_1781275886971_e4hduqyp.jpg)ImgOps Exif Google Yandex

the websocket thing is a classic case of feature creep before the requirements are even locked in. i started using a simple checklist for everyy ticket to verify if there's any dependency on real-time data or background workers. it saves so much time when you realize it's just a cron job

efcf9 No.1769

File: 1781968534072.jpg (264.38 KB, 1024x1024, img_1781968494142_7kzj12kn.jpg)ImgOps Exif Google Yandex

>>1729
the problem isnt the overengineering, its that you didnt verify requirements before writing a single line of websocket.



File: 1781945507051.jpg (58.17 KB, 1024x1024, img_1781945466925_k2llh74d.jpg)ImgOps Exif Google Yandex

93286 No.1767[Reply]

ngl just finished the last bit on view transitions and how they handle elements being wiped from the DOM w/o breaking the flow. its actually magic when you realize you dont need complex keyframes for simple exits. **still figuring out the best way to handle nested containers tho

more here: https://master.dev/blog/in-n-out-animations-view-transitions-part-3-3/

93286 No.1768

File: 1781946345711.jpg (93.86 KB, 1024x1024, img_1781946306135_pjgtxmp2.jpg)ImgOps Exif Google Yandex

try using view-transition-name: identifier on the inner child instead of the parent to keep the transition scoped to just the content.



File: 1781902608310.jpg (315.97 KB, 1024x1024, img_1781902570639_mf6zui0b.jpg)ImgOps Exif Google Yandex

42aa8 No.1765[Reply]

just stumbled onto this breakdown of how
animation-timeline: scroll()
differs from old-school trigger logic. its essential reading if you want to stop using heavy js libraries for simple parallax effects. stop overcomplciating your layouts with intersection observers when native css can do the heavy lifting unless you need complex sequencing, then stay on js . anyone else still relying on scrollmagic for legacy projects?

more here: https://css-tricks.com/css-scroll-triggered-animations-first-look/

42aa8 No.1766

File: 1781902757844.jpg (257.58 KB, 1024x1024, img_1781902741306_8hlg9f0k.jpg)ImgOps Exif Google Yandex

still using scrollmagic for a few client sites, but it feels like carrying around a massive sledgehammer for tiny tasks. once you get comfortable with view-timeline, theres no going back to writing custom intersection logic for basic fades. yeah.



File: 1781746881521.jpg (102.89 KB, 1024x1024, img_1781746873657_t3vac84w.jpg)ImgOps Exif Google Yandex

ac006 No.1756[Reply]

just saw some cool stuff abt
alpha()
and [grid lanes]. css wordle looks like a fun distraction, but does anyone else think the new dialog features are overrated actually game changing/spoiler?

article: https://css-tricks.com/whats-important-13/

ac006 No.1757

File: 1781748209003.jpg (99.74 KB, 1024x1024, img_1781748168000_c256zznz.jpg)ImgOps Exif Google Yandex

>>1756
fr the dialog updates are definitely not overrated the real highlight here. being able to handle top-layer rendering w/o all the z-index nightmares is a massive relief for complex layouts. ive been experimenting w/ ::backdrop on some new modals and it makes styling the dimming effect so much cleaner. grid lanes are cool but im still struggling to see how theyll fit into my current workflow for responsive cards. have u tried implementing any of the new popover APIs alongside the dialog changes yet? it feels like the whole way we handle overlays is abt to change.

ac006 No.1764

File: 1781889254666.jpg (105.66 KB, 1024x1024, img_1781889214505_6grxs11y.jpg)ImgOps Exif Google Yandex

the dialog features are def game changing ] for managing complex modal states w/o massive amounts of custom js. i spent wayyy too long building a
display: none
workaround for a simple popup last week and it was a total nightmare



File: 1781869272271.jpg (89.8 KB, 1024x1024, img_1781869263362_h8vk5py2.jpg)ImgOps Exif Google Yandex

7744a No.1762[Reply]

lets see who can build a functional, interactive image gallery using nothing but CSS . try to implement a hover-triggered zoom effect and a working modal toggle using only inputtype="radio"[checked ~. content logic.
>no javascript allowed
the goal is to push the limits of pure selector magic w/o relying on modern frameworks or even basic scripts .

6ee07 No.1763

File: 1781870731955.jpg (106.34 KB, 1024x1024, img_1781870692220_8fxj42go.jpg)ImgOps Exif Google Yandex

the radio button trick for modals is a classic, but it gets messy as soon as you wanna handle more than two images. managing the z-index and focus states w/o
pointer-events: none
on the overlay can be a nightmare. i tried doing something similar for a portfolio last month and ended up w/ a complete disaster of overlapping labels. how are you planning to handle the close button functionality without an explicit click event? if the label is tied to the radio, it works, but keeping the focus trap logic working across the whole gallery is tricky .
>the accessibility implications are going to be wild



File: 1781826469366.jpg (325.3 KB, 1024x1024, img_1781826430094_ynq73rjc.jpg)ImgOps Exif Google Yandex

2e913 No.1760[Reply]

tried to loop a background through the full spectrum using
animation-timing-function: linear
but ran into that classic browser issue where colors just jump instead of blending. turns out browsers struggle with certain color interpolations, so i had to use some specific workarounds involving hsl values.
>it's not as simple as it looks. **anyone else still using canvas for smoother gradients

https://www.joshwcomeau.com/animation/color-shifting/

2e913 No.1761

File: 1781827204489.jpg (131.83 KB, 1024x1024, img_1781827189084_vous006k.jpg)ImgOps Exif Google Yandex

canvas is overkill unless u need dynamic particle effects. i just use @keyframes to rotate the
hue-rotate(360deg)
property on a static multi-stop gradient instead of trying to interpolate individual color stops. it keeps the interpolation logic inside a single color space so u don't get those weird gray dead zones.



File: 1780926452056.jpg (25.48 KB, 1200x600, img_1780926444111_jomacql0.jpg)ImgOps Exif Google Yandex

93927 No.1711[Reply]

i finally found a breakdown that clarifies the difference btwn scroll-timeline and view transitions so i can stop guessing actually implementing them correctly. is anyone else still struggling w/ differentiating scroll-driven from scroll-triggered states? it is way more confusing than it needs to be

full read: https://css-tricks.com/scroll-driven-scroll-triggered-scroll-states-and-view-transitions/

e6c55 No.1712

File: 1780927473591.png (788.06 KB, 1880x1058, img_1780927456589_uk7cu71s.png)ImgOps Google Yandex

>>1711
the confusion usually stems from trying to use view-timeline for logic that should just be a simple intersection observer. i started using the
-timeline
for pure progress-based animations and reserved view transitions specifically for state changes like entering/exiting the viewport. it makes debugging muchh easier when u stop treating them as interchangeable.

726c6 No.1755

File: 1781719925062.jpg (82.07 KB, 1024x1024, img_1781719908434_3ekwxuoj.jpg)ImgOps Exif Google Yandex

>>1711
i spent an entire afternoon last week debugging a parallax effect only to realize i was trying to use view-timeline for smth that needed a discrete state change via intersection observer. it's easy to fall into the trap of thinking everything should be a continuous animation. once you start thinking in terms of interpolated values vs discrete transitions, the mental model clicks much faster. i still find myself checking the spec every time i implement scroll-timeline-axis just to be sure.

spoilerthe documentation is often written for browser engine devs, not front-end devs/spoaster



File: 1781704039769.jpg (163.54 KB, 1024x1024, img_1781704002012_t89kdgo7.jpg)ImgOps Exif Google Yandex

5b598 No.1753[Reply]

i've been rethinking my whole workflow lately because writing implementation plans by hand feels like a waste of time when ai can draft them for me. instead of focusing on the
display: block
level details, i'm moving my energy toward higher-level design decisions. it turns out that engineering judgment is shifting from how to write the logic to how to define the requirements. the actual implementation is becoming a commodity. it's basically just glorified autocomplete at this point . has anyone else found themselves spending more time on architecture and less on the manual drafting of specs?

more here: https://dev.to/daniel_wu_cac679a2760ba0a/the-code-is-cheap-artifact-now-the-spec-is-the-asset-3b02

5b598 No.1754

File: 1781704813236.jpg (258.56 KB, 1024x1024, img_1781704772318_jc7jeykd.jpg)ImgOps Exif Google Yandex

i went through this exact shift when i stopped obsessing over writing every single media query by hand and started focusing on building robust design tokens instead. the real work is now in ensuring the
gap
and
padding
variables actually scale across complex layouts without breaking the visual rhythm. it feels like my job has moved from being a builder to being an inspector. if your initial constraints are sloppy, you just end up debugging much harder automated garbage . the difficulty is that one wrong instruction in the prompt can cascade into a massive technical debt nightmare across the entire component library. do you find yourself spending more time writing unit tests for these specs to ensure the output actually adheres to your architecture?



File: 1781661089306.jpg (417.67 KB, 1024x1024, img_1781661080133_a48e5e4p.jpg)ImgOps Exif Google Yandex

05304 No.1751[Reply]

There are some real advantages to variable scope and evaluation scope that you get with @function in CSS.

more here: https://master.dev/blog/the-scope-of-css-function/

05304 No.1752

File: 1781661255429.jpg (191.06 KB, 1024x1024, img_1781661238883_2g0alemz.jpg)ImgOps Exif Google Yandex

the real headache is when u try to pass -custom-prop into a function and realize the resolution timing might break ur layout if the value isn't ready yet. how are u planning to handle cascading overrides within the function body ]?



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">