30秒学会 CSS 片段 – Horizontal scroll snap
Creates a horizontally scrollable container that will snap on elements when scrolling. Use display: ...
Creates a horizontally scrollable container that will snap on elements when scrolling. Use display: ...
Creates text that scales according to the viewport width. Use the clamp() CSS function to clamp the ...
Sometimes, you want to use a CSS property that is not yet supported by all browsers. Browsers often ...
Creates a zoom in zoom out animation. Use @keyframes to define a three-step animation. At the start ...
Creates a horizontally scrollable image gallery. Use display: flex and justify-content: center to se...
Creates a full-width image. Use left: 50% and right: 50% to position the image in the middle of the ...
Creates a card that displays additional content on hover. Use overflow: hidden on the card to hide e...
Creates a fill animation on hover. Set a color and background and use an appropriate transition to a...
Creates a card that shifts on hover. Set the appropriate perspective on the .container element to al...
Creates a zig zag background pattern. Use background-color to set a white background. Use background...