[Angular 9] Custom CSS Variables binding
时间:2020-02-17 18:08:28
收藏:0
阅读:95
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
评论(0)