You seem to like the no JS char by char on scroll reveal effect https://t.co/BgQtAY78pm so here's a gallery of various such effects on @CodePen https://t.co/f5aN38R4O4 - which is your fave? I oscillate between undissolve & wave.🤔
Also an entry for this week's #CodePenChallenge.
Recuerdo cuando, por ser crítico con El Hormiguero, los guionistas y su presentador, me llamó una de sus hormigas por teléfono. (Adivinad cuál).
Intentaba justificar las actitudes machistas y de abuso de poder del programa alegando que eran errores puntuales
🔥 Check out the updated ChangeDetection Demo !🔥
You can now visualise what happens with the Signal🚦 powered "local" change detection
It will now display which component will be traversed for local change detection of dirty consumers !!
👉 https://t.co/jPnyx202jB
#Angular
You need to write CSS for a web page you know will be printed?
Put print-color-adjust: exact; in your <body>, you'll thank her later 📷
https://t.co/UhdAwZyNsH
#CSS
https://t.co/Xc8NFr0g1p
@realitydesignrs From what I can see, I think that has something to do with the line length changing in the animation 🤔
Here's how I've created glitchy text reveals in the past with some generated keyframes 🤙
👉 https://t.co/mQ73QacTtL via @CodePen
Reminder 📢
If you're animating numbers, use this line of CSS 👇
.numbers {
font-variant: tabular-nums;
}
It will make sure your numbers don't jump around like this example seen in the wild 🤙
#Angular 17 support for ViewTransitions API is 🤯🔥
Just add withViewTransitions()
and unique name to component (same name in origin and destination page), eg
style="view-transition-name: blog-{{https://t.co/chm4VAJBm9}}-cover"
and you're set for amazing UX!
#Angular Deferrable Views
👇All Critical Aspects👇
Use Case
‣ Defer loading of components, directives, pipes, and CSS within templates.
How
‣ Wrap template sections in @defer blocks specifying loading conditions.
Benefits
‣ Reduces initial bundle size, defers heavy components, optimizes Core Web Vitals.
👉 Why Use Deferrable Views?
Performance
‣ Improves Largest Contentful Paint (LCP) and Time to First Byte (TTFB).
Best Practices
‣ Place potentially layout-shifting defer-loaded components below the fold.
👉 Deferrable Dependencies Criteria
‣ Must be standalone.
‣ Shouldn't be referenced outside @defer blocks, including ViewChild queries.
‣ Supports both standalone and NgModule-based transitive dependencies.
👉 Deferrable View Blocks
Main @ defer Block
‣ Lazily loads content upon specific triggers.
@ placeholder Block
‣ Shows content before triggering @defer. Prevents fast flickering.
@ loading Block
‣ Displays during loading of deferred dependencies.
@ error Block
‣ Shows content if deferred loading fails.
👉 Triggers and Conditions
on Trigger
‣ Specifies conditions like interaction, viewport entry, or timer.
Condition
‣ Imperative boolean expression triggering content swap.
👉 Prefetching
Purpose
‣ Fetch resources before they are needed.
Mechanism
‣ Uses prefetch keyword with when and on for advanced behaviors.
👉 Testing @ defer Blocks
Tool
‣ TestBed APIs for testing different states.
Process
‣ Manually transition between states in tests.
👉 Behaviour with SSR and SSG
‣ Renders @ placeholder or nothing
‣ Ignores triggers on server.
👉 Behaviour with NgModule
‣ Compatible with both standalone and NgModule-based entities.
‣ Only standalone entities are deferred; NgModule-based entities load eagerly.
👉 Nested @defer Blocks and Layout Shifts
Cascading Loads
‣ Avoid same-time triggering in nested blocks.
CLS Impact
‣ Best to not defer components visible on initial load.
Code Examples and more in depth guide available in official docs! -> angular .dev/guide/defer