Video yükleniyor...
Video Yüklenemedi
the trick: CSS position: sticky + mix-blend-mode: difference the bonus trick: add an extra layer and chain the blend to block content out 👨🍳
160,153 görüntüleme • 1 yıl önce •via X (Twitter)
31 Yorum

codepen for the lazy ones

ha – you are good at this 🙏😅

public service 💪 screenshot, copy text, create link, spam it on X

Wow, amazing tip. 👍

hi jhey, your work is incredible. is your work structured anywhere so that i can learn and try recreating these animations step by step

Learnt a lot. thanks for sharing!

These techniques showcase really creative use of CSS blending and positioning to achieve dynamic visual effects. Thanks for sharing these insightful tricks for enhancing web design!

Wonderful tip!!

cooooool

I'm interested by debug CSS because the best I do is just border 1px solid red

This is such a clever technique! The sticky + blend-mode combo is brilliant for creating always-visible navigation. Love how you're pushing CSS capabilities - super inspiring work! 🎨

Thanks for sharing, love the extra layer tip to block content 👌🏻

no problem at all – that comes in pretty handy if you have color content that you don't want to intefere 🤙

Ohhh you back 🥰🥰🥰

gonna give it a go 🙏

Too bad it only works properly with black and white. Different colors on the logo and buttons only make it look weird.

well yes, to be expected, it's "difference". you would expect red to give teal, etc. otherwise you need to introduce blocked out layers or isolate them

Is this what `isolation` property is for?

Look amazing 😃

When did this property start? I’ve been working with CSS since it was first released and am only just now hearing about it. Super cool.

Slick AF

great share

I tried blend mode and it broke animation performance by requiring all CSS animations to be done on the main UI thread

there is no animation here, not required

Ah, that's good, cuz it wouldn't blend well

it is blending, jus' doesn't need animating composited animations on blend layers typically work fine

ok flashbang ok

@evertjr

Looks amazing

Interesting! So you can achieve that using only css?

Please update your browser

