We made a very cool glow effect when hovering over. I want it to be broader. Ill reference the code here.
Also, this obviously only works for desktop version, it’d be very cool to have an automatic glow animation running for itself that looks just the same whenever someone enters the mobile version.
You’re all so helpful thanks!
Using Dawn 15 misteri.ca
Code used:
.banner__heading {
position: relative;
display: inline-block;
text-align: center; /* Center-align the content */
}
.banner__heading {
display: block;
max-width: 100%;
height: auto;
position: relative;
}
.banner__heading::after {
content: '';
position: absolute;
bottom: 50%; /* Position the underline centered vertically */
left: 50%; /* Position the underline centered horizontally */
transform: translate(-50%, 50%); /* Adjust to center the underline */
width: 80%; /* Adjust the width of the underline */
height: 5px;
background-color: transparent;
box-shadow: 0 6px 20px rgba(255, 255, 255, 0); /* Initial box-shadow (transparent white), wider spread */
transition: box-shadow 0.4s ease; /* Smooth transition for the glow effect */
}
.banner__heading:hover::after {
background-color: rgba(255, 255, 255, 0.04);
box-shadow: 0 10px 60px rgba(255, 255, 255, 1); /* White glowing effect on hover, even wider spread */