+ 1

Help. Is it true?

HTML <button class="btn"> TOUCH ME </button> CSS .btn:hover: :after { transform: translate(-5px, -5px); } .btn:hover: :before { transform: translate(5px, 5px); } .btn::after,.btn::before { border: 3px solid #000 position: absolute; border-radius: inherit; width: calc(100% - 6px); height: calc(100% - 6px); left: 0px; bottom; 0px; z-index: -1; transition: all .25s ease; }

20th Sep 2020, 5:22 AM
Tagiev Eziz
Tagiev Eziz - avatar
2 Antworten
+ 4
Yes your code is working properly and showing hover effect try on solo ide.
20th Sep 2020, 5:34 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
I cant see effect. only button
20th Sep 2020, 8:35 AM
Tagiev Eziz
Tagiev Eziz - avatar