How to change textcolor in a transition?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
Markus
 
 
Posts: 113
Joined: Fri Nov 23, 2018 1:06 pm
Location: Germanskow

How to change textcolor in a transition?

Post by Markus »

I try to change the text colour of a text element using the CSS transition.

Image

If I choose the property "background-colour" then all went okay. The background colour of the text changes if I scroll the page downwards. But what property I have to choose to change the text colour? All other entries related to "colour" does not change the text colour.

Thank you in advance
Markus
User avatar
Pablo
 
Posts: 23029
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to change textcolor in a transition?

Post by Pablo »

You cannot change the text color of a text object, because this is an inline style. Animations/transitions apply to the text's container only.
However, it should work with a heading or label.
User avatar
Markus
 
 
Posts: 113
Joined: Fri Nov 23, 2018 1:06 pm
Location: Germanskow

Re: How to change textcolor in a transition?

Post by Markus »

Thanks! Label works, Heading not. But I can go on now. :D *ThumbsUp*
User avatar
Fender
 
 
Posts: 118
Joined: Sun Oct 16, 2011 11:01 am

Re: How to change textcolor in a transition?

Post by Fender »

It is possible with a Heading and scroll transition, but you also have to insert

Code: Select all

<style>
#Heading1
{
color: inherit !important;
}
</style>
and use

Code: Select all

Type: do not use <div>

Otherwise you won't see the colorchange of the text.
Using the Heading object gives you the abelity for a larger text bloc.

Look at this post https://www.wysiwygwebbuilder.com/forum ... 56#p419356
Last edited by Fender on Fri Sep 27, 2019 11:11 am, edited 1 time in total.
User avatar
Markus
 
 
Posts: 113
Joined: Fri Nov 23, 2018 1:06 pm
Location: Germanskow

Re: How to change textcolor in a transition?

Post by Markus »

Great Fender, thanks for the link to your post. :)
User avatar
Fender
 
 
Posts: 118
Joined: Sun Oct 16, 2011 11:01 am

Re: How to change textcolor in a transition?

Post by Fender »

:P That's what the forum is for, I'm also happy when I'm not left in the dark and get a real solution
to accomplish what I'm looking for!
Post Reply