Input by sonusng
#212121
1input { 2 width: 210px; 3 height: 50px; 4 padding: 0 16px; 5 background: transparent; 6 border-radius: 4px; 7 border: 1px solid #fe4567; 8 color: #f9f9f9; 9 animation: shake_541 0.14s 3; 10} 11 12input:valid { 13 border-color: #45feaf; 14 animation: none; 15} 16 17@keyframes shake_541 { 18 0%, 100% { 19 translate: 0; 20 } 21 22 25% { 23 translate: 8px 0; 24 } 25 26 75% { 27 translate: -8px 0; 28 } 29}
2.8K views
2.8K views
MIT License