Html:
<input type="range" value="0" [style.--thumb-rotate]="720 * $any(input.value)/100 + ‘deg‘" #input (input)="0">
CSS:
input[type="range"]::-webkit-slider-thumb:active { background-position: 100% 0px; transform: scale(2) rotateZ(var(--thumb-rotate, 10deg)); }
原文地址:https://www.cnblogs.com/Answer1215/p/12322693.html
时间: 2024-10-04 05:43:53