The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Gradient Rainbow Usernames CSS

3 posters

Go down

In progress Gradient Rainbow Usernames CSS

Post by Metalgod542 January 10th 2014, 10:56 pm

Hello i am the owner of Elemental Hero University found at http://www.eherouniverisity.com/

I am wondering if it is possible to apply a gradient Rainbow Text shadow to usernames. For example: http://prntscr.com/2i891z but wiht more colors such as yellow purple and green as well as red and blue.

If it is possible may i obtain the proper code for it?


Thank you ahead of time.
avatar
Metalgod542
Forumember

Male Posts : 35
Reputation : 1
Language : English

Back to top Go down

In progress Re: Gradient Rainbow Usernames CSS

Post by Sir. Mayo January 11th 2014, 1:54 am

Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 980
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

In progress Re: Gradient Rainbow Usernames CSS

Post by Metalgod542 January 11th 2014, 7:06 am

None of those codes seems to be working. I tried it on one of my members and it did nothing.
avatar
Metalgod542
Forumember

Male Posts : 35
Reputation : 1
Language : English

Back to top Go down

In progress Re: Gradient Rainbow Usernames CSS

Post by Metalgod542 January 13th 2014, 1:33 am

Bump. I still need help with this.
avatar
Metalgod542
Forumember

Male Posts : 35
Reputation : 1
Language : English

Back to top Go down

In progress Re: Gradient Rainbow Usernames CSS

Post by Metalgod542 January 16th 2014, 3:40 am

Still needing help with this. Can anybody help me?
avatar
Metalgod542
Forumember

Male Posts : 35
Reputation : 1
Language : English

Back to top Go down

In progress Re: Gradient Rainbow Usernames CSS

Post by Sir. Mayo January 16th 2014, 4:43 am

Did you try this code?

Code:
        a[href="/usernumber"] span{color:#F00;animation:svcolor 1s infinite;-moz-animation:svcolor 1s infinite;-webkit-animation:svcolor 1s infinite;}
            @keyframes svcolor{10%{color:#F00}20%{color:#F80}30%{color:#FF0}40%{color:#5F0}50%{color:#0F0}60%{color:#0FD}70%{color:#09F}80%{color:#00F}90%{color:#A0F}100%{color:#F0F}}
            @-moz-keyframes svcolor{10%{color:#F00}20%{color:#F80}30%{color:#FF0}40%{color:#5F0}50%{color:#0F0}60%{color:#0FD}70%{color:#09F}80%{color:#00F}90%{color:#A0F}100%{color:#F0F}}
            @-webkit-keyframes svcolor{10%{color:#F00}20%{color:#F80}30%{color:#FF0}40%{color:#5F0}50%{color:#0F0}60%{color:#0FD}70%{color:#09F}80%{color:#00F}90%{color:#A0F}100%{color:#F0F}}
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 980
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

In progress Re: Gradient Rainbow Usernames CSS

Post by Metalgod542 January 20th 2014, 1:02 am

Yes i copied it as is and it didn't work. I tried it on my name and nothing happened
avatar
Metalgod542
Forumember

Male Posts : 35
Reputation : 1
Language : English

Back to top Go down

In progress Re: Gradient Rainbow Usernames CSS

Post by Ange Tuteur January 20th 2014, 1:17 am

Unfortunately the CSS stylesheet in the administration panel does not seem to support the CSS3 animations. It would instead have to be appended to the document head as an inline stylesheet.

EDIT :
Sorry I had forgotten to include the script

Administration Panel > Modules > Javascript codes management > Create a new script

Title : what you wish
Placement : in all the pages
Paste the code below and submit :
Code:
jQuery(function() {
/* create our style element */
var sheet = document.createElement('STYLE');

/* content for our style element */
sheet.innerHTML =
'a[href="/u1"] span {'+
'color:#F00;'+
'animation:svcolor 1s infinite;'+
'-moz-animation:svcolor 1s infinite;'+
'-webkit-animation:svcolor 1s infinite;}'+
'@keyframes svcolor {'+
'10%{color:#F00}'+
'20%{color:#F80}'+
'30%{color:#FF0}'+
'40%{color:#5F0}'+
'50%{color:#0F0}'+
'60%{color:#0FD}'+
'70%{color:#09F}'+
'80%{color:#00F}'+
'90%{color:#A0F}'+
'100%{color:#F0F}}'+
'@-moz-keyframes svcolor {'+
'10%{color:#F00}'+
'20%{color:#F80}'+
'30%{color:#FF0}'+
'40%{color:#5F0}'+
'50%{color:#0F0}'+
'60%{color:#0FD}'+
'70%{color:#09F}'+
'80%{color:#00F}'+
'90%{color:#A0F}'+
'100%{color:#F0F}}'+
'@-webkit-keyframes svcolor {'+
'10%{color:#F00}'+
'20%{color:#F80}'+
'30%{color:#FF0}'+
'40%{color:#5F0}'+
'50%{color:#0F0}'+
'60%{color:#0FD}'+
'70%{color:#09F}'+
'80%{color:#00F}'+
'90%{color:#A0F}'+
'100%{color:#F0F}}';

/* append the style element to the head */
document.getElementsByTagName('HEAD')[0].appendChild(sheet);
});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum