๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š—

417 posts

๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— banner
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š—

๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š—

@lokesh_coder

๐•

Bengaluru, India Katฤฑlฤฑm Temmuz 2010
159 Takip Edilen175 Takipรงiler
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
mrdoornbos
mrdoornbos@mrdoornbosยท
@nixcraft If you're gonna run code from the internet you don't understand, maybe start with: docker run -it --rm alpine:latest sh and then run it ;-)
mrdoornbos tweet media
English
31
132
3.2K
85.8K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
shadcn
shadcn@shadcnยท
I wanted to share the following 10 Tailwind techniques. These will come in handy next week. For those who donโ€™t use Tailwind, here be dragons! 1/10 - Letโ€™s start simple. Set a CSS variable (width) based on state and use an arbitrary className.
English
95
588
5.5K
347.9K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Theo - t3.gg
Theo - t3.gg@theoยท
Things I should have put in my .gitconfig years ago
Theo - t3.gg tweet media
English
112
647
9.7K
916K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
David ๐Ÿ”ฅ
David ๐Ÿ”ฅ@mresponsivelyยท
We didn't get into @ycombinator summer batch -- but we don't need them away ๐Ÿฅฒ But here's our demo video -- enjoy โค๏ธ #investment #startup #storyboard #ux #buildinginpublic
English
66
35
535
57.8K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
jhey ส•โ€ขแดฅโ€ขส”
the little detailsโ„ข Use trigonometric functions in CSS to create a smooth staggered transition delay ๐ŸŽฌ .character { transition-delay: calc(sin((var(--index) / 12) * 45deg) * 0.475s); }
Julien Sagot@Barbapapapps

Still can't believe this effect can be achieved by a single line of code. Mind blowing.

English
55
493
5.4K
539.5K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
jhey ส•โ€ขแดฅโ€ขส”
CSS Tip! ๐Ÿฌ You can create a CSS-only sticky CTA using position: sticky or scroll-driven animations ๐Ÿค™ .cta { position: sticky; margin-top: 110vh; bottom: 2rem; /* ๐Ÿ‘ˆ Stick! */ } This is one way ๐Ÿ‘€ This first way relies on you setting a layout on the body and putting the CTA in a zero-space part of the layout body { display: grid; grid-template-columns: auto 0; } The children of the body are an element with your content and then the CTA. You could also use display:flex too. .content { flex: 1 0 100%; } .cta { place-self: end; } As you scroll the body, the CTA comes into view and sticks in position ๐Ÿ™Œ That's one way. If you want to take it further and do something like flip between showing or not, maybe scale it up, or add some special easing, etc. an animation is another way ๐Ÿ“œ First, change the styles for your CTA. Note the translate property that's powered by a custom property .cta { position: fixed; bottom: 2rem; right: 2rem; translate: 0 calc(20vh - (var(--show) * 20vh)); transition: translate 0.875s var(--elastic); } Next you need a custom property that you're going to animate @โ€‹property --show { inherits: true; initial-value: 0; syntax: ''; } Lastly, you animate this value on the body. As the property value changes, the value will trickle down to the CTA @โ€‹supports (animation-timeline: scroll()) { body { animation: show-cta both steps(1); animation-timeline: scroll(root); animation-range: 0 10vh; } @โ€‹keyframes show-cta { to { --show: 1; } } } Using @โ€‹supports you can use this as a progressive enhancement. If scroll-driven animations are supported, use them. Otherwise fallback to using position: sticky ๐Ÿค™ That's it! As always, any questions or requests, hit me up! ๐Ÿ™ @CodePen link below! ๐Ÿ‘‡
K.O.O@Dominus_Kelvin

Summoning the CSS wizard @jh3yy ๐Ÿง™ How would you do that sticky button CTA without JavaScript ๐Ÿ‘€

English
14
78
828
133K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Netanel Basal
Netanel Basal@NetanelBasalยท
๐ŸŽ‰ All major browsers now support the new Array.prototype.with method ๐Ÿฅณ #browser_compatibility" target="_blank" rel="nofollow noopener">developer.mozilla.org/en-US/docs/Webโ€ฆ Ideal for immutable updates. Here is an example with Angular signals:
Netanel Basal tweet media
English
4
29
141
8.6K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Bun
Bun@bunjavascriptยท
Introducing the Bun Shell Cross-platform shell language & interpreter for shell scripting with JavaScript
Bun tweet media
English
155
415
3.7K
993.8K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Daniel Vassallo
Daniel Vassallo@dvassalloยท
Cool demo of what PWAs can do today: whatpwacando.today This site can be installed as a PWA and you can try all these features on your phone.
Daniel Vassallo tweet media
English
52
158
1.1K
152.2K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
flavio
flavio@flaviocopesยท
We all know the HTML <input> tag but I was today years old when I learned about <output>
flavio tweet media
English
19
31
546
80.5K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Massimo
Massimo@Rainmaker1973ยท
How much of this math do you know? A clever animation vs math by Alan Becker [full video: buff.ly/44cL72j] twitter.com/Levandov_2/staโ€ฆ
English
156
4.1K
18.8K
2.8M
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
tldraw
tldraw@tldrawยท
15,000 stars โญ๏ธ๐Ÿ‘„โญ๏ธ github.com/tldraw/tldraw
English
5
11
245
29.3K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Molly Struve ๐Ÿฆ„
Molly Struve ๐Ÿฆ„@molly_struveยท
Coding be like...
Molly Struve ๐Ÿฆ„ tweet media
English
4
7
45
3.1K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Shu
Shu@shudingยท
Another one, very subtle this time: { 0% { mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 150% 0 / 400% no-repeat; opacity: .2; } 100% { mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 0 / 400% no-repeat; opacity: 1; } }
English
28
220
2.6K
0
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
jacob paris โ–ฒ
jacob paris โ–ฒ@jacobmparisยท
Your icons should be SVG sprites instead of JSX - make a component like <Icon name="trash" /> - get autocomplete for icon names - auto build the spritesheet when new svgs are added jacobparis.com/content/svg-icโ€ฆ
English
18
55
514
89.2K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
bolt.new
bolt.new@boltdotnewยท
๐ŸŽจ CSS tip(3): `height: 100vh` is a common way to make your app fit the whole window. It won't do a good job on mobile though ๐Ÿ˜ฌ `height: 100dvh` works way better! ๐Ÿ“ฑ See the difference on your phone: dvh.stackblitz.io ๐Ÿ’ป Play with the demo: stackblitz.com/edit/dvh?file=โ€ฆ
GIF
English
37
442
2.4K
276.9K
๐™ป๐š˜๐š”๐šŽ๐šœ๐š‘ ๐š๐šŠ๐š“๐šŽ๐š—๐š๐š›๐šŠ๐š— retweetledi
Chris Coyier
Chris Coyier@chriscoyierยท
I was unaware of `text-wrap: pretty;` I knew about the (new/cool) `text-wrap: balance;` โ€” but sometimes that's a bit... too much. I feel like it's nice on headers but not smaller type. Here's what I mean.
English
20
153
1.4K
393.9K