CSS鼠标滑过动作过度时间和回位过度时间代码
.cases_cont_pro_pic{ width:23%; border: 0 solid #b0b0b0; margin-left:20px; padding:0; border-radius: 5px; box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); transition-property: transform;/***返回原位过度时间下三句***/ transition-duration: 1s; transform: translateY(0); } .cases_cont_pro_pic:hover{ background:var(--cpcolor); box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); transform: translateY(-10px);/***鼠标滑过向上10px过度时间下两句***/ transition: .9s; }
Statement: If the content on this site infringes upon the legitimate rights and interests of the original author, please contact this site to delete it.