Text changes colors

By Golden-Cat-14 Golden-Cat-14

Description

put description what kind of problem does the solution solve and how

Code

[[module CSS]]
@keyframes color-transition {
 0% { color: red; }
 25% { color: blue; }
 50% { color: green; }
 75% { color: orange; }
 100% { color: purple; }
}
.color-transition-text {
 animation: color-transition 5s infinite;
}
[[/module]]
[[div class="color-transition-text"]]
 Text changes colors
[[/div]]

In action

Text changes colors


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Golden-Cat-14

Do not try in life 2 - 14 Sep 2022 05:51
Do not try in life - 14 Sep 2022 05:50


Rate this solution

If you think this solution is useful — rate it up!

rating: +11
page revision: 2, last edited: 04 Jun 2023 09:49
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /