XF 2.1 How to animated username style

use user css in the usergroup section
add key animation in extra.less
Less:
@keyframes animate {
  0% {
    background-position: -500%;
  }
  100% {
    background-position: 500%;
  }
}
and this css for your usergroup -
Less:
    text-transform: uppercase;
    overflow: hidden;
    background: linear-gradient(90deg, #000000, #ffffff, #000000);
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animate 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
this is just example you can use any code of css

for example -
44a2f8786a1eeccfe35f2ae3eca1a378.gif
 

Attachments

  • 1580472732687.webp
    1580472732687.webp
    2 KB · Views: 26
Last edited:
use user css in the usergroup section
add key animation in extra.less
Less:
@keyframes animate {
  0% {
    background-position: -500%;
  }
  100% {
    background-position: 500%;
  }
}
and this css for your usergroup -
Less:
    text-transform: uppercase;
    overflow: hidden;
    background: linear-gradient(90deg, #000000, #ffffff, #000000);
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animate 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
this is just example you can use any code of css

for example -
44a2f8786a1eeccfe35f2ae3eca1a378.gif
thats great, what would be code for pink color user name
 
Top Bottom