To enhance user engagement, I incorporated keyframe animation into my login icon on the website. The main objective is to capture the attention of visitors who are not registered users. However, once a user logs in, I intend for the keyframe animation to cease. It should only be active when non-registered users browse the site.
Below is the snippet of code from my style.css file. Please note that my website is powered by Wordpress.
.menu-item-15097 .dashicons-download {
animation-name: menu-item-15097;
animation-duration: 2s;
animation-iteration-count: infinite;
}
@keyframes dashicons-download {
0% {
box-shadow: 0px 0px 3px grey;
}
50% {
box-shadow: 0px 0px 10px grey;
}
100% {
box-shadow: 0px 0px 3px grey;
}
}
I am looking for a detailed guide on how to achieve this functionality. Which specific files do I need to modify and what elements require updates? I assume additional code will have to be inserted into my style.css file, and potentially some JavaScript as well?