X 归档 2021-09-14
We normally think of gradients as having smooth or hard color stops, but @jimmmy shows how cool "grainy" gradients look. https://css-tricks.com/grainy-gradients/
我们通常认为渐变只有平滑或生硬的色标,但 @jimmmy 展示了「颗粒感」渐变有多酷。https://css-tricks.com/grainy-gradients/
We normally think of gradients as having smooth or hard color stops, but @jimmmy shows how cool "grainy" gradients look. https://css-tricks.com/grainy-gradients/
我们通常认为渐变只有平滑或生硬的色标,但 @jimmmy 展示了「颗粒感」渐变有多酷。https://css-tricks.com/grainy-gradients/
Similar concept, but a square mask!
This mask is fit dynamically to a hovered || tapped DOM element 🤓
For some flair, the video shows offsetting sides of the square with delays on the custom property transitions
src https://codepen.io/argyleink/pen/jOwwWOb
try it https://codepen.io/argyleink/full/jOwwWOb https://t.co/6Aq8BAfUt3
This mask is fit dynamically to a hovered || tapped DOM element 🤓
For some flair, the video shows offsetting sides of the square with delays on the custom property transitions
src https://codepen.io/argyleink/pen/jOwwWOb
try it https://codepen.io/argyleink/full/jOwwWOb https://t.co/6Aq8BAfUt3
类似的概念,不过这次是方形遮罩!
这个遮罩会动态贴合被 hover || 点按的 DOM 元素 🤓
为了更有味道,视频里还通过给自定义属性的过渡加延迟,让方形的各条边错落变化
src
试试 https://t.co/6Aq8BAfUt3
这个遮罩会动态贴合被 hover || 点按的 DOM 元素 🤓
为了更有味道,视频里还通过给自定义属性的过渡加延迟,让方形的各条边错落变化
src
试试 https://t.co/6Aq8BAfUt3

