Like it very much. If I use it in my site that has the default XF style the button will be red or orange like in the XF style? If not, how can I change the colors?
@-webkit-keyframes orangePulse {
from { background-color: #fc9200; -webkit-box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; -webkit-box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; -webkit-box-shadow: 0 0 9px #333; }
}
@-moz-keyframes orangePulse {
from { background-color: #fc9200; -moz-box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; -moz-box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; -moz-box-shadow: 0 0 9px #333; }
}
@-o-keyframes orangePulse {
from { background-color: #fc9200; -o-box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; -o-box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; -o-box-shadow: 0 0 9px #333; }
}
@keyframes orangePulse {
from { background-color: #fc9200; box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; box-shadow: 0 0 9px #333; }
}
#SignupButton {
border: none !important;
background: transparent !important;
}
#SignupButton .inner {
-webkit-animation-name: orangePulse;
-webkit-animation-duration: 2s;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: orangePulse;
-moz-animation-duration: 2s;
-moz-animation-iteration-count: infinite;
-o-animation-name: orangePulse;
-o-animation-duration: 2s;
-o-animation-iteration-count: infinite;
animation-name: orangePulse;
animation-duration: 2s;
animation-iteration-count: infinite;
}
/* END SIGN UP BUTTON*/
Hah, thats awesome
You need to change the # values to suit your own colour scheme.
For an orange variation, try:-
Code:@-webkit-keyframes orangePulse { from { background-color: #fc9200; -webkit-box-shadow: 0 0 9px #333; } 50% { background-color: #ffb515; -webkit-box-shadow: 0 0 18px #ffb515; } to { background-color: #fc9200; -webkit-box-shadow: 0 0 9px #333; } } @-moz-keyframes orangePulse { from { background-color: #fc9200; -moz-box-shadow: 0 0 9px #333; } 50% { background-color: #ffb515; -moz-box-shadow: 0 0 18px #ffb515; } to { background-color: #fc9200; -moz-box-shadow: 0 0 9px #333; } } @-o-keyframes orangePulse { from { background-color: #fc9200; -o-box-shadow: 0 0 9px #333; } 50% { background-color: #ffb515; -o-box-shadow: 0 0 18px #ffb515; } to { background-color: #fc9200; -o-box-shadow: 0 0 9px #333; } } @keyframes orangePulse { from { background-color: #fc9200; box-shadow: 0 0 9px #333; } 50% { background-color: #ffb515; box-shadow: 0 0 18px #ffb515; } to { background-color: #fc9200; box-shadow: 0 0 9px #333; } } #SignupButton { border: none !important; background: transparent !important; } #SignupButton .inner { -webkit-animation-name: orangePulse; -webkit-animation-duration: 2s; } -webkit-animation-iteration-count: infinite; -moz-animation-name: orangePulse; -moz-animation-duration: 2s; } -moz-animation-iteration-count: infinite; -o-animation-name: orangePulse; -o-animation-duration: 2s; -o-animation-iteration-count: infinite; animation-name: orangePulse; animation-duration: 2s; animation-iteration-count: infinite; /* END SIGN UP BUTTON*/
Great trick Azhria, but in my environment the button "breathe" one time only...
You don't appear to have added:-
-webkit-animation-iteration-count: infinite;
to
#SignupButton .inner {
$1
/* SIGN UP BOX */
@-webkit-keyframes orangePulse {
from { background-color: #fc9200; -webkit-box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; -webkit-box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; -webkit-box-shadow: 0 0 9px #333; }
}
@-moz-keyframes orangePulse {
from { background-color: #fc9200; -moz-box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; -moz-box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; -moz-box-shadow: 0 0 9px #333; }
}
@-o-keyframes orangePulse {
from { background-color: #fc9200; -o-box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; -o-box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; -o-box-shadow: 0 0 9px #333; }
}
@keyframes orangePulse {
from { background-color: #fc9200; box-shadow: 0 0 9px #333; }
50% { background-color: #ffb515; box-shadow: 0 0 18px #ffb515; }
to { background-color: #fc9200; box-shadow: 0 0 9px #333; }
}
#SignupButton {
border: none !important;
background: transparent !important;
}
#SignupButton .inner {
-webkit-animation-name: orangePulse;
-webkit-animation-duration: 2s; }
-webkit-animation-iteration-count: infinite;
-moz-animation-name: orangePulse;
-moz-animation-duration: 2s; }
-moz-animation-iteration-count: infinite;
-o-animation-name: orangePulse;
-o-animation-duration: 2s;
-o-animation-iteration-count: infinite;
animation-name: orangePulse;
animation-duration: 2s;
animation-iteration-count: infinite;
/* END SIGN UP BUTTON*/
uhmm... this is the exact code I using
Code:#SignupButton .inner { -webkit-animation-name: orangePulse; -webkit-animation-duration: 2s; } -webkit-animation-iteration-count: infinite; -moz-animation-name: orangePulse; -moz-animation-duration: 2s; } -moz-animation-iteration-count: infinite; -o-animation-name: orangePulse; -o-animation-duration: 2s; -o-animation-iteration-count: infinite; animation-name: orangePulse; animation-duration: 2s; animation-iteration-count: infinite; /* END SIGN UP BUTTON*/
#SignupButton .inner {
-webkit-animation-name: orangePulse;
-webkit-animation-duration: 2s;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: orangePulse;
-moz-animation-duration: 2s;
-moz-animation-iteration-count: infinite;
-o-animation-name: orangePulse;
-o-animation-duration: 2s;
-o-animation-iteration-count: infinite;
animation-name: orangePulse;
animation-duration: 2s;
animation-iteration-count: infinite;
}
/* END SIGN UP BUTTON*/
Works in XenForo 1.2 without issue
Its only CSS so I'd have been surprised if it didn't
There are a few css edits I had that no longer function correctly. So the idea that css is 100% full proof all the time, isn't exactly true. It does depend on the surrounding css.
We use essential cookies to make this site work, and optional cookies to enhance your experience.