标签:cte play splay check sel radio ansi NPU button
For a radio button control, when hide selected status, we can use:
.input__control::before { content: ""; width: 0.5em; height: 0.5em; // box-shadow works better than background-color on printable version box-shadow: inset 1em 1em var(--color-primary, color("primary")); border-radius: 50%; // using as display none transform: scale(0); transition: 180ms transform ease-in-out; } input:checked + .input__control::before { transform: scale(1); }
It is easy to apply animation to it as well.
[CSS] Using transform: scale(0) for hiding element
标签:cte play splay check sel radio ansi NPU button
原文地址:https://www.cnblogs.com/Answer1215/p/14488669.html