My site has cool glow effect when hovering over the banner and the main button. That only works on desktop because of the hovering mechanic. It’d be crazily cool to make it play automatically by itself after loading the site on the mobile version. Are able to help me do that? 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 */





