39_Password Strength Background
๐ป์ฃผ์ : ๋ก๊ทธ์ธ ์์, ์ํธ์ ๊ฐ๋์ ๋ฐ๋ผ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง์ ํ๋ฆผ๋๊ฐ ๊ฒฐ์ ๋จ.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.8.11/tailwind.min.css" integrity="sha512-KO1h5ynYuqsFuEicc7DmOQc+S9m2xiCKYlC3zcZCSEw0RGDsxcMnppRaMZnb0DdzTDPaW22ID/gAGCZ9i+RT/w==" crossorigin="anonymous"/>
password.addEventListener('input', (e) => {
const input = e.target.value
const length = input.length
const blurValue = 20-length*2
background.style.filter = `blur(${blurValue}px)`
})
filter: blur(20px)
์ผ๋ก ๊ธฐ๋ณธ๊ฐ์ด ์ค์ ๋์๊ธฐ ๋๋ฌธ์
๋ฐฑํฑ ๊ธฐํธ๋ฅผ ์ฌ์ฉํด filter๋ฅผ ๋ณ๊ฒฝํ ์ ์๋๋ก ํจ.