diff --git a/index.html b/index.html new file mode 100644 index 0000000..fb33288 --- /dev/null +++ b/index.html @@ -0,0 +1,28 @@ + + + + + Animatet Icons + + + + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..f3f362b --- /dev/null +++ b/style.css @@ -0,0 +1,77 @@ +* +{ + margin: 0; + padding: 0; + box-sizing: border-box; +} +:root +{ + --bg: #222; +} +body +{ + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; + background: var(--bg); +} +ul +{ + position: relative; + display: flex; + gap: 50px; +} +ul li +{ + position: relative; + list-style: none; + width: 80px; + height: 80px; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + transition: 0.5s; +} +ul li:hover +{ + z-index: 10000; + transform: scale(0.75); +} +ul li::before +{ + content: ''; + position: absolute; + inset: 30px; + box-shadow: 0 0 0 10px var(--clr), + 0 0 0 20px var(--bg), + 0 0 0 22px var(--clr); + transition: 0.5s; +} +ul li:hover::before +{ + inset: 0px; +} +ul li::after +{ + content: ''; + position: absolute; + inset: 0; + background: var(--bg); + transform: rotate(45deg); +} +ul li a +{ + position: relative; + text-decoration: none; + color: var(--clr); + z-index: 10; + font-size: 2em; + transition: 0.5s; +} +ul li:hover a +{ + font-size: 3em; + filter: drop-shadow(0 0 20px var(--clr)) drop-shadow(0 0 40px var(--clr)) drop-shadow(0 0 60px var(--clr)); +} \ No newline at end of file