Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Next.js 15.3: useLinkStatus Define inline feedback to show while navigations complete. Tip: • Avoid an unnecessary flicker of pending UI on fast loads by adding an initial animation delay (e.g. 100ms) and fading in from 0 opacity.

155,140 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

Delba profil fotoğrafı
Delba1 yıl önce

More client-orientated features coming soon 😘 • Shipped @gao_jude • Docs: • Playground with code examples:

UserInterface profil fotoğrafı
UserInterface2 yıl önce

UIX Network: A Beacon for Black-Owned Businesses and Content Creators #Business

Izak Filmalter profil fotoğrafı
Izak Filmalter1 yıl önce

Bro the fact that we have to show a loading state on the primary nav is the problem.

sunil pai profil fotoğrafı
sunil pai1 yıl önce

You are a god of the UI demo animation

Delba profil fotoğrafı
Delba1 yıl önce

🤍

Jason Rai profil fotoğrafı
Jason Rai1 yıl önce

Curious why it needs to be a child of Link. What if. wanted to display some pending state UI in a different area of the application? Like a line that runs across the top of the page for example.

Delba profil fotoğrafı
Delba1 yıl önce

This is specifically for inline feedback, same as (there more be something for global indicators in the future)

meowy profil fotoğrafı
meowy1 yıl önce

Can we get your remotion template/how you do it video? 👀

hood profil fotoğrafı
hood1 yıl önce

Re: Avoid an unnecessary flicker of pending UI on fast loads... Are we really asking users to do workarounds like that on a framework that’s supposed to be targeted to companies seeking for a production-ready foundation for websites/web apps?

Delba profil fotoğrafı
Delba1 yıl önce

It’s actually a good recommendation 😜 because you can do it cheaply in CSS

Benzer Videolar

CSS Tip! 🐳 You can add little details like this scale down on scroll effect with scroll-driven animations and some sticky positioning 🤙 section { animation: scale-down; animation-timeline: view(); animation-range: exit; } @​keyframes scale-down { to { scale 0.8; } ] In this smaller example, you can lean into using the position to drive an animation that scales itself down as it leaves the viewport (Seen on the Apple Vision Pro site 🍏) The nice thing here is that if you don't have scroll-driven animations, the user still gets a good experience ✨ So how do you do it? There isn't much to it header { transform-origin: 50% 0%; animation: scale-down both ease-in; animation-timeline: view(); animation-range: exit; view-timeline: --header; } @​keyframes scale-down { to { scale: 0.8 0.8; } } That's it. The layout makes use of position: sticky so that the element stays in the shot whilst you scroll the page. As it leaves the page, it scales down inside the 🫶 The other smol animation here is fading the overlay on the video out 😎 Real easy. You may notice the view-timeline you defined above for the 👀 header { view-timeline: --header; } You have a pseudoelement on the text content of the header that lives inside a header > section::before { background: hsl(0 0% 0% / 0.75); opacity: 1; animation: fade both linear; animation-timeline: --header; animation-range: exit-crossing 0% exit 0%; } @​keyframes fade { to { opacity: 0; } } You use a slightly smaller range on this with exit-crossing to fade it out before you start the scale down animation 🤏 That's it! Thought this smaller example would be easier to grok for people 🙏 It's also covered with JavaScript if you really want it for your sites 🤙 CodePen.IO link below 👇

jhey ʕ•ᴥ•ʔ

146,270 görüntüleme • 2 yıl önce