Replies

Sep 15, 2018 7 years ago
Omen
is a spooky scary skeleton
User Avatar
Mirage

On the quest-a-thon bar, it's green but when you tap it--it shifts colors, that's really cool! Is there a sharable code for that?

Or should I just enjoy it till it's gone?

Thanks for reading :3

---❤️--- please commission me sometime ^^

Sep 16, 2018 7 years ago
Frenchi
is hopelessly romantic
User Avatar
Vivisect

using your browser's "inspect element" feature, you can see that they've created an animation called "rainbow" with the following CSS:

rainbow { 0%, 100% {background-color: } 17% {background-color: } 33% {background-color: } 50% {background-color: } 67% {background-color: } 83% {background-color: } } and then applied that animation to the bar's hover state like so:

.ui.progress:hover .bar.finished { animation-name: rainbow; animation-duration: 1s; animation-iteration-count: infinite; animation-direction: normal; animation-timing-function: linear; -webkit-animation-name: rainbow; -webkit-animation-duration: 1s; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: normal; -webkit-animation-timing-function: linear; } CSS animations are pretty cool and there are lots of possibilities with them. you can learn more here (and also by just googling "CSS animation").

Sep 16, 2018 7 years ago
Omen
is a spooky scary skeleton
User Avatar
Mirage

oh wow thank you so much, very cool x3

---❤️--- please commission me sometime ^^

Please log in to reply to this topic.