I apologize in advance if this is a boring question or to simple but I’m struggling to properly apply color to a beating heart. Example is pulled from free code camp and I believe the color is only being applied to the main heart class which will show a little color at the bottom of the heart. Under the impression that heart:before and heart:after do not need animation properties. Thank you!
You can format the code in your post using the </> button in the post editor, in this way your code will be surrounded by backticks without you having to type them.
For multiline code snippets be sure to have a line with three backticks above the code and a line with three backticks below the code
I just found that option in the post editor. Is adding the backticks suppose to help with visual representation and separating the content in general to navigate easier?
If the pseudo-element does not need to have it’s own starting color then having it inherit the color makes sense. And then yes, it won’t need its own animation. However, if the pseudo-element does have it’s own starting color, you also need to apply the animation for the color change to it as well.
I would suggest using a much simpler example to play with and test.
Don’t feel sorry man . we are here to learn and help each other so feel free to ask any thing you get to know more about it and yeah It helps you a lot .@FfejNnyl