X 归档 2022-11-12
CSS Tip! 🚀
Use custom properties to power parallax effects 😎
Use JavaScript to pass the pointer position to CSS. Let CSS handle the rest, moving things at different rates 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
Play with card effects ✨
Demo link below! 👇
Use custom properties to power parallax effects 😎
Use JavaScript to pass the pointer position to CSS. Let CSS handle the rest, moving things at different rates 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
Play with card effects ✨
Demo link below! 👇
CSS 技巧!🚀
用自定义属性驱动视差效果 😎
用 JavaScript 把指针位置传给 CSS,剩下的交给 CSS,让元素以不同的速率移动 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
来玩玩卡片效果 ✨
Demo 链接在下方!👇
用自定义属性驱动视差效果 😎
用 JavaScript 把指针位置传给 CSS,剩下的交给 CSS,让元素以不同的速率移动 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
来玩玩卡片效果 ✨
Demo 链接在下方!👇
Here's that @CodePen link! ⚡️
It's kinda hard to explain everything going on here in one tweet 😅
The magic part is how you can use JS to work out something for you and then let CSS do the rest, you're decoupling them in a way.
Let's go over it 👇
https://codepen.io/jh3y/pen/wvXvERq
It's kinda hard to explain everything going on here in one tweet 😅
The magic part is how you can use JS to work out something for you and then let CSS do the rest, you're decoupling them in a way.
Let's go over it 👇
https://codepen.io/jh3y/pen/wvXvERq
这是那个 @CodePen 链接!⚡️
想在一条推文里把这里面的门道全讲清楚还真有点难 😅
神奇之处在于:你可以用 JS 替你算出某些东西,然后让 CSS 完成剩下的工作,从某种意义上这是一种解耦。
我们来过一遍 👇
https://codepen.io/jh3y/pen/wvXvERq
想在一条推文里把这里面的门道全讲清楚还真有点难 😅
神奇之处在于:你可以用 JS 替你算出某些东西,然后让 CSS 完成剩下的工作,从某种意义上这是一种解耦。
我们来过一遍 👇
https://codepen.io/jh3y/pen/wvXvERq
Render maps on GitHub using markdown. 💯
Markdown / Preview
Markdown / Preview
用 Markdown 在 GitHub 上渲染地图。💯
Markdown / 预览
Markdown / 预览
Memory Model in WebAssembly
https://sendilkumarn.com/blog/rustwasm-memory-model/
https://sendilkumarn.com/blog/rustwasm-memory-model/
WebAssembly 中的内存模型
https://sendilkumarn.com/blog/rustwasm-memory-model/
https://sendilkumarn.com/blog/rustwasm-memory-model/
I found that I need a more powerful CI machine for stc because the default GitHub actions runner dies with OOM even without LTO. I applied for GitHub Actions custom runner beta. It's possible thanks to the people who donated.
我发现 stc 需要一台更强的 CI 机器,因为默认的 GitHub Actions runner 即使不开 LTO 也会因 OOM 挂掉。我申请了 GitHub Actions 自定义 runner 的 beta。多亏了捐赠者们,这才成为可能。
CSS Tip! 🚀
Use custom properties to power parallax effects 😎
Use JavaScript to pass the pointer position to CSS. Let CSS handle the rest, moving things at different rates 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
Play with card effects ✨
Demo link below! 👇
Use custom properties to power parallax effects 😎
Use JavaScript to pass the pointer position to CSS. Let CSS handle the rest, moving things at different rates 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
Play with card effects ✨
Demo link below! 👇
CSS 技巧!🚀
用自定义属性驱动视差效果 😎
用 JavaScript 把指针位置传给 CSS,剩下的交给 CSS,让元素以不同的速率移动 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
来玩玩卡片效果 ✨
Demo 链接在下方!👇
用自定义属性驱动视差效果 😎
用 JavaScript 把指针位置传给 CSS,剩下的交给 CSS,让元素以不同的速率移动 💪
card:hover{
rotate: calc(var(--ratio-y) * 50deg);
}
来玩玩卡片效果 ✨
Demo 链接在下方!👇
Memory Model in WebAssembly
https://sendilkumarn.com/blog/rustwasm-memory-model/
https://sendilkumarn.com/blog/rustwasm-memory-model/
WebAssembly 中的内存模型
https://sendilkumarn.com/blog/rustwasm-memory-model/
https://sendilkumarn.com/blog/rustwasm-memory-model/
@perjerz34 Maybe you can try the another DnD library
https://github.com/ng-dnd/ng-dnd
https://github.com/ng-dnd/ng-dnd
@perjerz34 也许你可以试试另一个 DnD 库
https://github.com/ng-dnd/ng-dnd
https://github.com/ng-dnd/ng-dnd








