0
How do i make the button perspective glow red when i hover over it?
Code is in my code bit below: https://www.sololearn.com/compiler-playground/WbaLKCxiKWyR
3 Réponses
+ 3
Paul-Henry Paltmann
Share your code..
On the other hand you can take help using the search bar..
https://code.sololearn.com/WMb5x0AvODGs/?ref=app
https://code.sololearn.com/WJcD8OFQFJZq/?ref=app
https://code.sololearn.com/WTN208qUF3f6/?ref=app
https://code.sololearn.com/WkX90NsboelY/?ref=app
https://code.sololearn.com/WfveVfJqlvzh/?ref=app
+ 3
Paul-Henry Paltmann
See all code again with carefully...
your code is incomplete Incomplete
Where are html part?
For better response plz Share code link..
+ 1
I am sharing it in the code bit
Most of these you shared don't help cuz they don't have a shadow underneath.
@import url('https://fonts.googleapis.com/css?family=Montserrat:500');
*{
box-sizing: border-box;
margin: 0;
padding: 0;
/*background-color: #24252A;*/
color: rgb(255, 255, 255);
font-family: "Montserrat", sans-serif;
font-size: 16px;
}
:root {
--clr-neon: hsl(189, 100%, 63%);
--clr-neon2: hsl(0, 97%, 43%);
--clr-bg: #24252A;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--clr-bg);
font-family: "Balsamiq Sans", cursive;
color: var(--clr-neon);
padding-right: 10rem;
}
.neon-button {
font-size: 1rem;
display: inline-block;
cursor: pointer;
text-decoration: none;
color: var(--clr-neon);
border: var(--clr-neon) 0.125em solid;
padding: 0.25em 1em;
border-radius: 0.25em;
text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em currentColor;
box-shadow: inset 0 0 0.5em 0 var(--clr-neon), 0 0 0.5em 0 var(--clr-neon);
position: relative;
}
.neon-button::before {
pointer-events: none;
content: "";
position: absolute;
background: var(--clr-neon);
top: 120%;
left: 0;
width: 100%;
height: 100%;
transform: perspective(1em) rotateX(40deg) scale(1, 0.35);
filter: blur(1em);
opacity: 0.7;
}
.neon-button::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
box-shadow: 0 0 2em 0.5em var(--clr-neon2);
opacity: 0;
z-index: -1;
transition: opacity 100ms linear;
}
.neon-button:hover,
.neon-button:focus {
color: var(--clr-bg);
text-shadow: none;
background: var(--clr-neon2);
border: var(--clr-neon2) 0.125em solid;
box-shadow: inset 0 0 0.5em 0 var(--clr-neon2), 0 0 0.5em 0 var(--clr-neon2);
}
.neon-button:hover::before,
.neon-button:focus::before {
opacity: 1;
}
.neon-button:hover::after,
.neon-button:focus::after {
opacity: 1;
}